jtui-vite 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1,81 @@
1
- (function(l,Z){typeof exports=="object"&&typeof module<"u"?module.exports=Z(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Z):(l=typeof globalThis<"u"?globalThis:l||self,l.jtui=Z(l.Vue))})(this,(function(l){"use strict";const Z=(n,i)=>{const c=n.__vccOpts||n;for(const[t,p]of i)c[t]=p;return c},re={name:"cus-button"};function de(n,i,c,t,p,Y){const b=l.resolveComponent("el-button");return l.openBlock(),l.createBlock(b,l.normalizeProps(l.guardReactiveProps(n.$attrs)),{default:l.withCtx(()=>[l.renderSlot(n.$slots,"default")]),_:3},16)}const ue=Z(re,[["render",de]]);function se(n){var i={11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江 ",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北 ",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏 ",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外 "},c=!0;if(!n||!/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(n))c=!1;else if(!i[n.substr(0,2)])c=!1;else if(n.length==18){n=n.split("");for(var t=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2],p=[1,0,"X",9,8,7,6,5,4,3,2],Y=0,b=0,x=0,V=0;V<17;V++)b=n[V],x=t[V],Y+=b*x;p[Y%11],p[Y%11]!=n[17]&&(c=!1)}return c}class ce{required(){return{required:!0,whitespace:!0,message:"该项必须填写",trigger:"blur"}}requiredFocus(){return{required:!0,whitespace:!0,message:"该项必须填写",trigger:"focus"}}range(i,c){return{min:Number(i),max:Number(c),message:`长度在 ${i} 到 ${c} 个字符`,trigger:"blur"}}len(i){return{len:Number(i),message:`字符长度必须是 ${i}`,trigger:"blur"}}num(){return{validator:(c,t,p)=>{isNaN(Number(t))&&p(new Error("必须是数字类型")),p()},trigger:"blur"}}email(){return{validator:(c,t,p)=>{/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(t)||p(new Error("邮箱格式不正确")),p()},trigger:"blur"}}idCard(){return{validator:(c,t,p)=>{se(t)||p(new Error("身份证号码不正确")),p()},trigger:"blur"}}phone(){return{validator:(c,t,p)=>{/^1[3-9]\d{9}$/.test(t)||p(new Error("手机号码不正确")),p()},trigger:"blur"}}letters(){return{validator:(c,t,p)=>{/^[a-zA-Z]+$/.test(t)||t===""?p():p(new Error("必须是英文字母"))},trigger:"blur"}}requireAll(){return{validator:(c,t,p)=>{t!==""&&t!==void 0&&t!==null?p():p(new Error("该项不能为空"))},trigger:"blur"}}requireSelect(){return{validator:(c,t,p)=>{Array.isArray(t)&&t.length>0?p():p(new Error("请至少选择一个"))},trigger:"blur"}}}function ie(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ee={exports:{}},he=ee.exports,te;function me(){return te||(te=1,(function(n,i){(function(c,t){n.exports=t()})(he,(function(){var c=1e3,t=6e4,p=36e5,Y="millisecond",b="second",x="minute",V="hour",E="day",K="week",w="month",T="quarter",F="year",S="date",H="Invalid Date",Q=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,J=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,X={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var r=["th","st","nd","rd"],o=e%100;return"["+e+(r[(o-20)%10]||r[o]||r[0])+"]"}},L=function(e,r,o){var u=String(e);return!u||u.length>=r?e:""+Array(r+1-u.length).join(o)+e},G={s:L,z:function(e){var r=-e.utcOffset(),o=Math.abs(r),u=Math.floor(o/60),d=o%60;return(r<=0?"+":"-")+L(u,2,"0")+":"+L(d,2,"0")},m:function e(r,o){if(r.date()<o.date())return-e(o,r);var u=12*(o.year()-r.year())+(o.month()-r.month()),d=r.clone().add(u,w),h=o-d<0,m=r.clone().add(u+(h?-1:1),w);return+(-(u+(o-d)/(h?d-m:m-d))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:w,y:F,w:K,d:E,D:S,h:V,m:x,s:b,ms:Y,Q:T}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return e===void 0}},I="en",z={};z[I]=X;var $="$isDayjsObject",W=function(e){return e instanceof j||!(!e||!e[$])},P=function e(r,o,u){var d;if(!r)return I;if(typeof r=="string"){var h=r.toLowerCase();z[h]&&(d=h),o&&(z[h]=o,d=h);var m=r.split("-");if(!d&&m.length>1)return e(m[0])}else{var y=r.name;z[y]=r,d=y}return!u&&d&&(I=d),d||!u&&I},C=function(e,r){if(W(e))return e.clone();var o=typeof r=="object"?r:{};return o.date=e,o.args=arguments,new j(o)},f=G;f.l=P,f.i=W,f.w=function(e,r){return C(e,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var j=(function(){function e(o){this.$L=P(o.locale,null,!0),this.parse(o),this.$x=this.$x||o.x||{},this[$]=!0}var r=e.prototype;return r.parse=function(o){this.$d=(function(u){var d=u.date,h=u.utc;if(d===null)return new Date(NaN);if(f.u(d))return new Date;if(d instanceof Date)return new Date(d);if(typeof d=="string"&&!/Z$/i.test(d)){var m=d.match(Q);if(m){var y=m[2]-1||0,g=(m[7]||"0").substring(0,3);return h?new Date(Date.UTC(m[1],y,m[3]||1,m[4]||0,m[5]||0,m[6]||0,g)):new Date(m[1],y,m[3]||1,m[4]||0,m[5]||0,m[6]||0,g)}}return new Date(d)})(o),this.init()},r.init=function(){var o=this.$d;this.$y=o.getFullYear(),this.$M=o.getMonth(),this.$D=o.getDate(),this.$W=o.getDay(),this.$H=o.getHours(),this.$m=o.getMinutes(),this.$s=o.getSeconds(),this.$ms=o.getMilliseconds()},r.$utils=function(){return f},r.isValid=function(){return this.$d.toString()!==H},r.isSame=function(o,u){var d=C(o);return this.startOf(u)<=d&&d<=this.endOf(u)},r.isAfter=function(o,u){return C(o)<this.startOf(u)},r.isBefore=function(o,u){return this.endOf(u)<C(o)},r.$g=function(o,u,d){return f.u(o)?this[u]:this.set(d,o)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(o,u){var d=this,h=!!f.u(u)||u,m=f.p(o),y=function(M,_){var U=f.w(d.$u?Date.UTC(d.$y,_,M):new Date(d.$y,_,M),d);return h?U:U.endOf(E)},g=function(M,_){return f.w(d.toDate()[M].apply(d.toDate("s"),(h?[0,0,0,0]:[23,59,59,999]).slice(_)),d)},B=this.$W,a=this.$M,s=this.$D,k="set"+(this.$u?"UTC":"");switch(m){case F:return h?y(1,0):y(31,11);case w:return h?y(1,a):y(0,a+1);case K:var D=this.$locale().weekStart||0,N=(B<D?B+7:B)-D;return y(h?s-N:s+(6-N),a);case E:case S:return g(k+"Hours",0);case V:return g(k+"Minutes",1);case x:return g(k+"Seconds",2);case b:return g(k+"Milliseconds",3);default:return this.clone()}},r.endOf=function(o){return this.startOf(o,!1)},r.$set=function(o,u){var d,h=f.p(o),m="set"+(this.$u?"UTC":""),y=(d={},d[E]=m+"Date",d[S]=m+"Date",d[w]=m+"Month",d[F]=m+"FullYear",d[V]=m+"Hours",d[x]=m+"Minutes",d[b]=m+"Seconds",d[Y]=m+"Milliseconds",d)[h],g=h===E?this.$D+(u-this.$W):u;if(h===w||h===F){var B=this.clone().set(S,1);B.$d[y](g),B.init(),this.$d=B.set(S,Math.min(this.$D,B.daysInMonth())).$d}else y&&this.$d[y](g);return this.init(),this},r.set=function(o,u){return this.clone().$set(o,u)},r.get=function(o){return this[f.p(o)]()},r.add=function(o,u){var d,h=this;o=Number(o);var m=f.p(u),y=function(a){var s=C(h);return f.w(s.date(s.date()+Math.round(a*o)),h)};if(m===w)return this.set(w,this.$M+o);if(m===F)return this.set(F,this.$y+o);if(m===E)return y(1);if(m===K)return y(7);var g=(d={},d[x]=t,d[V]=p,d[b]=c,d)[m]||1,B=this.$d.getTime()+o*g;return f.w(B,this)},r.subtract=function(o,u){return this.add(-1*o,u)},r.format=function(o){var u=this,d=this.$locale();if(!this.isValid())return d.invalidDate||H;var h=o||"YYYY-MM-DDTHH:mm:ssZ",m=f.z(this),y=this.$H,g=this.$m,B=this.$M,a=d.weekdays,s=d.months,k=d.meridiem,D=function(_,U,O,q){return _&&(_[U]||_(u,h))||O[U].slice(0,q)},N=function(_){return f.s(y%12||12,_,"0")},M=k||function(_,U,O){var q=_<12?"AM":"PM";return O?q.toLowerCase():q};return h.replace(J,(function(_,U){return U||(function(O){switch(O){case"YY":return String(u.$y).slice(-2);case"YYYY":return f.s(u.$y,4,"0");case"M":return B+1;case"MM":return f.s(B+1,2,"0");case"MMM":return D(d.monthsShort,B,s,3);case"MMMM":return D(s,B);case"D":return u.$D;case"DD":return f.s(u.$D,2,"0");case"d":return String(u.$W);case"dd":return D(d.weekdaysMin,u.$W,a,2);case"ddd":return D(d.weekdaysShort,u.$W,a,3);case"dddd":return a[u.$W];case"H":return String(y);case"HH":return f.s(y,2,"0");case"h":return N(1);case"hh":return N(2);case"a":return M(y,g,!0);case"A":return M(y,g,!1);case"m":return String(g);case"mm":return f.s(g,2,"0");case"s":return String(u.$s);case"ss":return f.s(u.$s,2,"0");case"SSS":return f.s(u.$ms,3,"0");case"Z":return m}return null})(_)||m.replace(":","")}))},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(o,u,d){var h,m=this,y=f.p(u),g=C(o),B=(g.utcOffset()-this.utcOffset())*t,a=this-g,s=function(){return f.m(m,g)};switch(y){case F:h=s()/12;break;case w:h=s();break;case T:h=s()/3;break;case K:h=(a-B)/6048e5;break;case E:h=(a-B)/864e5;break;case V:h=a/p;break;case x:h=a/t;break;case b:h=a/c;break;default:h=a}return d?h:f.a(h)},r.daysInMonth=function(){return this.endOf(w).$D},r.$locale=function(){return z[this.$L]},r.locale=function(o,u){if(!o)return this.$L;var d=this.clone(),h=P(o,u,!0);return h&&(d.$L=h),d},r.clone=function(){return f.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},e})(),v=j.prototype;return C.prototype=v,[["$ms",Y],["$s",b],["$m",x],["$H",V],["$W",E],["$M",w],["$y",F],["$D",S]].forEach((function(e){v[e[1]]=function(r){return this.$g(r,e[0],e[1])}})),C.extend=function(e,r){return e.$i||(e(r,j,C),e.$i=!0),C},C.locale=P,C.isDayjs=W,C.unix=function(e){return C(1e3*e)},C.en=z[I],C.Ls=z,C.p={},C}))})(ee)),ee.exports}var pe=me();const A=ie(pe),fe=[{text:"昨天",value:()=>{const n=A().subtract(1,"days").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"),i=A().subtract(1,"days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");return[n,i]}},{text:"今天",value:()=>{const n=A().hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"),i=A().format("YYYY-MM-DD HH:mm:ss");return[n,i]}},{text:"最近2天",value:()=>{const n=A().subtract(2,"days").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"),i=A().subtract(1,"days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");return[n,i]}},{text:"最近3天",value:()=>{const n=A().subtract(3,"days").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"),i=A().subtract(1,"days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");return[n,i]}},{text:"最近一周",value:()=>{const n=A().subtract(1,"weeks").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"),i=A().subtract(1,"days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");return[n,i]}},{text:"最近一个月",value:()=>{const n=A().subtract(1,"months").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"),i=A().subtract(1,"days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");return[n,i]}}];var ye={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const oe={name:"jt-form",emits:["switchChange","focus","blur","casChange","cusBtn"],props:{id:{type:[String,Number],require:!0},model:{type:Object,require:!0},formConfig:{type:Array,require:!0},labelWidth:{type:String,default:"80px"},inline:{type:Boolean,default:!1},size:{type:String,default:"default"},labelPosition:{type:String,default:"right"},rules:{type:Object,default:()=>({})},col:{type:Number,default:1},border:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},axios:{type:Function},title:{type:String,default:""},lazyLoadParams:{type:Object,default:null},autoInputConfig:{type:Object,default:null}},setup(n,{emit:i}){let c=l.ref(!0);const t=l.getCurrentInstance();let p=l.reactive({});const Y=l.toRef(n,"lazyLoadParams"),b=l.computed(()=>n.model),x=l.ref(!1),V=l.ref(),E=l.reactive({selectid:"",keywords:""}),K=l.ref([{retjson:{},DataArray:[],Result:""}]);let w=[],T=l.ref(!1),F=l.ref(!1);const S=l.reactive({PageIndex:1,PageRowCount:50,total:100}),H=l.shallowRef(),Q={},J=a=>({placeholder:a.placeholder?a.placeholder:"请输入内容...",readOnly:a.readOnly?a.readOnly:!1,autoFocus:a.autoFocus?a.autoFocus:!0,maxLength:a.maxlength?a.maxlength:null});l.onBeforeUnmount(()=>{const a=H.value;a?.destroy()});const X=(a,s)=>{b.value[s.modelKey]=atob(b.value[s.modelKey]),H.value=a};l.watch(b.value,a=>{n.formConfig.forEach(s=>{"submitKey"in s&&(b.value[s.submitKey]=a[s.modelKey])})}),n.rules&&(c.value=!1,z(),l.nextTick(()=>{c.value=!0}));function L(a){a.isPwd=!a.isPwd,a.isPwd?a.iType="text":a.iType="password"}function G(a){switch(a){case"large":return"36px";case"default":return"32px";case"small":return"28px"}}function I(a,s){i("switchChange",a[0],s)}function z(){let a=new ce;Object.keys(n.rules).forEach(s=>{p[s]=[],n.rules[s].forEach(k=>{if(typeof k=="string"){let D=k.split("-");if(D[1]){let N=D[1].split(",");p[s].push(a[D[0]](...N))}else p[s].push(a[k]())}})})}function $(a,s){i("focus",a,s)}function W(a,s){i("blur",a,s)}function P(a){let{path:s,childPath:k}=a,D=a.multiple||!1,N=a.checkStrictly||!1;return{lazy:!0,multiple:D,checkStrictly:N,async lazyLoad(M,_){const{level:U,data:O}=M;if(U===0){const{data:q}=await n.axios.post(s+k,a.params||Y.value);_(q.map(R=>({label:R.name,leaf:R.path==="-"||!R.path,path:R.path,value:R.id,other:R})))}if(U>0){if(O.path==="-"||!O.path){_();return}const{data:q}=await n.axios.post(s+O.path,a.params||Y.value);_(q.map(R=>({label:R.name,leaf:R.path==="-"||!R.path,path:R.path,value:R.id,other:R})))}}}}function C(a,s){const k=t.refs[a][0].getCheckedNodes();i("casChange",k,s)}function f(a,s){i("cusBtn",a,s)}function j(){return n.formConfig.forEach(a=>{a.type=="htmlarea"&&(b.value[a.modelKey+"_base64"]=btoa(b.value[a.modelKey]))}),t.refs[n.id].validate()}function v(){t.refs[n.id].resetFields()}const e=l.ref(null),r=a=>{const[s]=a;e.value=s},o=()=>{e.value=null},u=(a,s)=>{if(!e.value)return!1;if(s){const k=new Date(e.value).getTime()-s*24*60*60*1e3,D=new Date(e.value).getTime()+s*24*60*60*1e3;return a<k||a>D}else return!1};function d(a){return a=="datetime"||a=="datetimerange"?"YYYY-MM-DD HH:mm":a=="year"?"YYYY":a=="month"||a=="monthrange"?"YYYY-MM":a=="week"?"YYYY年第ww周":"YYYY-MM-DD"}async function h(){Array.isArray(n?.autoInputConfig?.selectData)&&n.autoInputConfig.selectData.length>0?E.selectid=n.autoInputConfig.selectData[0].value:delete E.selectid,n.autoInputConfig.keywords||delete E.keywords,S.PageIndex=1,w=[],x.value=!0,l.nextTick(()=>{g()})}function m(a,s){if(a=="cellClick"){const{row:k}=s;Object.keys(k).forEach(D=>{Object.keys(n.model).forEach(N=>{N==D&&(n.model[N]=k[D])})}),x.value=!1}}async function y(){F.value=!1,S.PageIndex=1,w=[],g()}async function g(){if(F.value==!0)return;T.value=!0;const{data:a}=await n.axios.post(n.autoInputConfig.path+n.autoInputConfig.childPath,Object.assign(E,n.autoInputConfig.subParams,S)),s=a;if(s[0].Result==0){T.value=!1,V.value.loadData([]);return}K.value[0].retjson=s[0].retjson,s[0].retjson.isPages?(S.total=s[0].retjson.TotalCount,s[0].Result==0?F.value=!0:(w=w.concat(s[0].DataArray),V.value.loadData(w,()=>{T.value=!1,S.PageIndex++}))):V.value.loadData(s[0].DataArray,()=>{T.value=!1,F.value=!0})}async function B(a,s){const{path:k,childPath:D}=s;if(a){const{data:N}=await n.axios.post(k+D,s.params||Y.value);s.options=N.map(M=>({label:M.name,leaf:M.path==="-"||!M.path,path:M.path,value:M.id,other:M}))}}return{casVisibleChange:B,handleChange:r,handleFocus:o,disabledDate:u,isShow:c,eyeClick:L,switchChange:I,focus:$,resetAll:v,validateAll:j,itemClick:f,casChange:C,blur:W,loadData:P,type2size:G,rulesMap:p,shortcuts:fe,timeFormat:d,locale:ye,modelRemote:b,openAutoInput:h,isAutoInput:x,autoQuery:E,autoTableData:K,customEvents:m,search:y,loading:T,page:S,load:g,autoInputTable:V,editorRef:H,toolbarConfig:Q,editorConfig:J,handleCreated:X}}},ae=()=>{l.useCssVars(n=>({v7306ce68:n.labelWidth,c689ef3a:n.labelPosition}))},ne=oe.setup;oe.setup=ne?(n,i)=>(ae(),ne(n,i)):ae;const be={key:3,class:"ht-text"},ge=["onClick"],Ce={key:12,style:{"margin-right":"5px"}},ke={key:14,style:{"margin-left":"5px"}},Ee={class:"cell-item"},we={key:0,style:{color:"red"}},Be={key:3,class:"ht-text"},De=["onClick"],Ve={key:12,style:{"margin-right":"5px"}},_e={key:14,style:{"margin-left":"5px"}},xe={class:"filter-box"},Fe={key:0,class:"table-box"};function Se(n,i,c,t,p,Y){const b=l.resolveComponent("el-input"),x=l.resolveComponent("el-tooltip"),V=l.resolveComponent("el-input-number"),E=l.resolveComponent("el-option"),K=l.resolveComponent("el-select"),w=l.resolveComponent("el-cascader"),T=l.resolveComponent("el-date-picker"),F=l.resolveComponent("el-time-picker"),S=l.resolveComponent("el-switch"),H=l.resolveComponent("el-checkbox"),Q=l.resolveComponent("el-checkbox-group"),J=l.resolveComponent("el-radio"),X=l.resolveComponent("el-radio-group"),L=l.resolveComponent("el-autocomplete"),G=l.resolveComponent("el-form-item"),I=l.resolveComponent("Toolbar"),z=l.resolveComponent("Editor"),$=l.resolveComponent("el-descriptions-item"),W=l.resolveComponent("el-descriptions"),P=l.resolveComponent("el-form"),C=l.resolveComponent("el-button"),f=l.resolveComponent("table-big-data"),j=l.resolveComponent("el-drawer"),v=l.resolveComponent("el-config-provider");return l.openBlock(),l.createBlock(v,{locale:t.locale},{default:l.withCtx(()=>[t.isShow?(l.openBlock(),l.createBlock(P,{key:0,model:c.model,"label-width":0,"label-position":c.labelPosition,rules:t.rulesMap,ref:c.id,inline:c.inline,"inline-message":"","status-icon":""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.formConfig,(e,r)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:r},[c.inline?(l.openBlock(),l.createBlock(G,{key:0,label:e.label,"label-align":e.align||"center",prop:e.modelKey,style:l.normalizeStyle(e.width?e.width:"100%")},{default:l.withCtx(()=>[e.type==="empty"?(l.openBlock(),l.createElementBlock("div",{key:0,style:l.normalizeStyle({height:t.type2size(c.size)})},null,4)):l.createCommentVNode("",!0),e.type==="upload"?l.renderSlot(n.$slots,e.slotName?e.slotName:"upload",{key:1},void 0,!0):l.createCommentVNode("",!0),e.type==="custom"?(l.openBlock(),l.createBlock(x,{key:2,"popper-class":"jt-form-popper",placement:"top"},{content:l.withCtx(()=>[l.renderSlot(n.$slots,e.slotName,{},void 0,!0)]),default:l.withCtx(()=>[l.createVNode(b,{modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,placeholder:e.placeholder?e.placeholder:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1024)):l.createCommentVNode("",!0),e.type==="text"?(l.openBlock(),l.createElementBlock("span",be,l.toDisplayString(c.model[e.modelKey]),1)):l.createCommentVNode("",!0),e.type==="input"?(l.openBlock(),l.createBlock(b,{key:4,style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),placeholder:e.placeholder?e.placeholder:"",type:e.iType?e.iType:"text",disabled:e.disabled?e.disabled:!1,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,onFocus:o=>t.focus(e.modelKey,o),onBlur:o=>t.blur(e.modelKey,o)},{suffix:l.withCtx(()=>["isPwd"in e?(l.openBlock(),l.createElementBlock("i",{key:0,class:l.normalizeClass(["jtIcon",e.isPwd?"iconyincangmima":"iconxianshimima"]),onClick:l.withModifiers(o=>t.eyeClick(e),["stop"])},null,10,ge)):l.createCommentVNode("",!0)]),_:2},1032,["style","placeholder","type","disabled","modelValue","onUpdate:modelValue","onFocus","onBlur"])):l.createCommentVNode("",!0),e.type==="textarea"?(l.openBlock(),l.createBlock(b,{key:5,style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),placeholder:e.placeholder?e.placeholder:"",type:"textarea",disabled:e.disabled?e.disabled:!1,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,maxlength:e.maxlength?e.maxlength:-1,autosize:typeof e.autosize=="boolean"?e.autosize:{minRows:e.minRows,maxRows:e.maxRows},"show-word-limit":e.maxlength!=-1,onFocus:o=>t.focus(e.modelKey,o),onBlur:o=>t.blur(e.modelKey,o)},null,8,["style","placeholder","disabled","modelValue","onUpdate:modelValue","maxlength","autosize","show-word-limit","onFocus","onBlur"])):l.createCommentVNode("",!0),e.type==="iNumber"?(l.openBlock(),l.createBlock(V,{key:6,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),disabled:e.disabled?e.disabled:!1,min:e.min!=null?e.min:-1/0,max:e.max!=null?e.max:1/0,"controls-position":"right"},null,8,["modelValue","onUpdate:modelValue","style","disabled","min","max"])):l.createCommentVNode("",!0),e.type==="select"?(l.openBlock(),l.createBlock(K,{key:7,"default-first-option":"",style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,disabled:e.disabled?e.disabled:!1,filterable:!!e.isCreate,"allow-create":!!e.isCreate,multiple:e.multiple!==void 0,"collapse-tags":e.collapse!==void 0,placeholder:e.placeholder?e.placeholder:""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,o=>(l.openBlock(),l.createBlock(E,{key:o.value,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:2},1032,["style","modelValue","onUpdate:modelValue","disabled","filterable","allow-create","multiple","collapse-tags","placeholder"])):l.createCommentVNode("",!0),e.type==="select_r"?(l.openBlock(),l.createBlock(K,{key:8,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),disabled:e.disabled?e.disabled:!1,multiple:e.multiple!==void 0,"collapse-tags":e.collapse!==void 0,filterable:"",remote:"","remote-method":e.remoteMethod,placeholder:e.placeholder?e.placeholder:""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,o=>(l.openBlock(),l.createBlock(E,{key:o.value,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","style","disabled","multiple","collapse-tags","remote-method","placeholder"])):l.createCommentVNode("",!0),e.type==="cascader"?(l.openBlock(),l.createBlock(w,{key:9,filterable:e.filterable!==void 0?e.filterable:!0,ref_for:!0,ref:e.modelKey?e.modelKey:"elCascader",disabled:e.disabled?e.disabled:!1,"collapse-tags":c.collapseTags,"show-all-levels":e.isEnd?e.isEnd:!0,placeholder:e.placeholder?e.placeholder:"请选择",style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),options:e.options||[],onVisibleChange:o=>t.casVisibleChange(o,e),onChange:o=>t.casChange(e.modelKey?e.modelKey:"elCascader",e.modelKey),props:t.loadData({path:e.path,childPath:e.childPath,params:e.params,checkStrictly:e.checkStrictly,multiple:e.multiple})},null,8,["filterable","disabled","collapse-tags","show-all-levels","placeholder","style","options","onVisibleChange","onChange","props"])):l.createCommentVNode("",!0),e.type==="date"?(l.openBlock(),l.createBlock(T,{key:10,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,shortcuts:t.shortcuts,style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),disabled:e.disabled?e.disabled:!1,type:e.dType,"value-format":e.valFormat,"unlink-panels":"","start-placeholder":"开始日期",format:t.timeFormat(e.dType),"disabled-date":o=>t.disabledDate(o,e.timeRangeNum),onFocus:t.handleFocus,onCalendarChange:t.handleChange,"end-placeholder":"结束日期",placeholder:"选择日期","range-separator":"至"},null,8,["modelValue","onUpdate:modelValue","shortcuts","style","disabled","type","value-format","format","disabled-date","onFocus","onCalendarChange"])):l.createCommentVNode("",!0),e.type==="time"?(l.openBlock(),l.createBlock(F,{key:11,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),"value-format":"HH:mm:ss",disabled:e.disabled?e.disabled:!1,placeholder:e.placeholder?e.placeholder:"请选择时间"},null,8,["modelValue","onUpdate:modelValue","style","disabled","placeholder"])):l.createCommentVNode("",!0),e.type==="switch"?(l.openBlock(),l.createElementBlock("span",Ce,l.toDisplayString(e.bText),1)):l.createCommentVNode("",!0),e.type==="switch"?(l.openBlock(),l.createBlock(S,{key:13,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,disabled:e.disabled?e.disabled:!1,"active-text":e.rt?e.rt:"","inactive-text":e.lt?e.lt:"","active-color":"#13ce66",onChange:o=>t.switchChange(arguments,e.modelKey),"inactive-color":"#ff4949"},null,8,["modelValue","onUpdate:modelValue","disabled","active-text","inactive-text","onChange"])):l.createCommentVNode("",!0),e.type==="switch"?(l.openBlock(),l.createElementBlock("span",ke,l.toDisplayString(e.fText),1)):l.createCommentVNode("",!0),e.type==="checkbox"?(l.openBlock(),l.createBlock(Q,{key:15,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,(o,u)=>(l.openBlock(),l.createBlock(H,{label:o.value,key:u,disabled:o.disabled?o.disabled:!1},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(o.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):l.createCommentVNode("",!0),e.type==="radio"?(l.openBlock(),l.createBlock(X,{key:16,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,(o,u)=>(l.openBlock(),l.createBlock(J,{key:u,disabled:o.disabled?o.disabled:!1,label:o.value},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(o.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):l.createCommentVNode("",!0),e.type==="autocomplete"?(l.openBlock(),l.createBlock(L,{key:17,class:"inline-input",style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,"fetch-suggestions":e.querySearch,placeholder:e.placeholder?e.placeholder:"请输入"},null,8,["style","modelValue","onUpdate:modelValue","fetch-suggestions","placeholder"])):l.createCommentVNode("",!0)]),_:2},1032,["label","label-align","prop","style"])):l.createCommentVNode("",!0)],64))),128)),c.inline?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(W,{key:0,column:c.col,size:c.size,border:c.border,title:c.title},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.formConfig,(e,r)=>(l.openBlock(),l.createBlock($,{"label-align":e.align||"center",key:r},{label:l.withCtx(()=>[l.createElementVNode("div",Ee,[e.modelKey in c.rules?(l.openBlock(),l.createElementBlock("span",we,"*")):l.createCommentVNode("",!0),l.createTextVNode(" "+l.toDisplayString(e.label),1)])]),default:l.withCtx(()=>[l.createVNode(G,{prop:e.modelKey,style:l.normalizeStyle([{"margin-bottom":"0",display:"inline-block"},e.width?e.width:"100%"])},{default:l.withCtx(()=>[e.type==="empty"?(l.openBlock(),l.createElementBlock("div",{key:0,style:l.normalizeStyle({height:t.type2size(c.size)})},null,4)):l.createCommentVNode("",!0),e.type==="upload"?l.renderSlot(n.$slots,e.slotName?e.slotName:"upload",{key:1},void 0,!0):l.createCommentVNode("",!0),e.type==="custom"?(l.openBlock(),l.createBlock(x,{key:2,"popper-class":"jt-form-popper",placement:"top"},{content:l.withCtx(()=>[l.renderSlot(n.$slots,e.slotName,{},void 0,!0)]),default:l.withCtx(()=>[l.createVNode(b,{modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,placeholder:e.placeholder?e.placeholder:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1024)):l.createCommentVNode("",!0),e.type==="text"?(l.openBlock(),l.createElementBlock("span",Be,l.toDisplayString(c.model[e.modelKey]),1)):l.createCommentVNode("",!0),e.type==="input"?(l.openBlock(),l.createBlock(b,{key:4,style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),placeholder:e.placeholder?e.placeholder:"",type:e.iType?e.iType:"text",disabled:e.disabled?e.disabled:!1,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,onFocus:o=>t.focus(e.modelKey,o),onBlur:o=>t.blur(e.modelKey,o)},{suffix:l.withCtx(()=>["isPwd"in e?(l.openBlock(),l.createElementBlock("i",{key:0,class:l.normalizeClass(["jtIcon",e.isPwd?"iconyincangmima":"iconxianshimima"]),onClick:l.withModifiers(o=>t.eyeClick(e),["stop"])},null,10,De)):l.createCommentVNode("",!0)]),_:2},1032,["style","placeholder","type","disabled","modelValue","onUpdate:modelValue","onFocus","onBlur"])):l.createCommentVNode("",!0),e.type==="textarea"?(l.openBlock(),l.createBlock(b,{key:5,style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),placeholder:e.placeholder?e.placeholder:"",type:"textarea",disabled:e.disabled?e.disabled:!1,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,maxlength:e.maxlength?e.maxlength:-1,autosize:typeof e.autosize=="boolean"?e.autosize:{minRows:e.minRows,maxRows:e.maxRows},"show-word-limit":e.maxlength!=-1,onFocus:o=>t.focus(e.modelKey,o),onBlur:o=>t.blur(e.modelKey,o)},null,8,["style","placeholder","disabled","modelValue","onUpdate:modelValue","maxlength","autosize","show-word-limit","onFocus","onBlur"])):l.createCommentVNode("",!0),e.type==="iNumber"?(l.openBlock(),l.createBlock(V,{key:6,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),disabled:e.disabled?e.disabled:!1,min:e.min!=null?e.min:-1/0,max:e.max!=null?e.max:1/0,"controls-position":"right"},null,8,["modelValue","onUpdate:modelValue","style","disabled","min","max"])):l.createCommentVNode("",!0),e.type==="select"?(l.openBlock(),l.createBlock(K,{key:7,"default-first-option":"",style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,disabled:e.disabled?e.disabled:!1,filterable:!!e.isCreate,"allow-create":!!e.isCreate,multiple:e.multiple!==void 0,"collapse-tags":e.collapse!==void 0,placeholder:e.placeholder?e.placeholder:""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,o=>(l.openBlock(),l.createBlock(E,{key:o.value,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:2},1032,["style","modelValue","onUpdate:modelValue","disabled","filterable","allow-create","multiple","collapse-tags","placeholder"])):l.createCommentVNode("",!0),e.type==="select_r"?(l.openBlock(),l.createBlock(K,{key:8,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),disabled:e.disabled?e.disabled:!1,multiple:e.multiple!==void 0,"collapse-tags":e.collapse!==void 0,filterable:"",remote:"","remote-method":e.remoteMethod,placeholder:e.placeholder?e.placeholder:""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,o=>(l.openBlock(),l.createBlock(E,{key:o.value,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","style","disabled","multiple","collapse-tags","remote-method","placeholder"])):l.createCommentVNode("",!0),e.type==="cascader"?(l.openBlock(),l.createBlock(w,{key:9,filterable:e.filterable!==void 0?e.filterable:!0,ref_for:!0,ref:e.modelKey?e.modelKey:"elCascader",disabled:e.disabled?e.disabled:!1,"collapse-tags":c.collapseTags,"show-all-levels":e.isEnd?e.isEnd:!0,placeholder:e.placeholder?e.placeholder:"请选择",style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),options:e.options||[],onVisibleChange:o=>t.casVisibleChange(o,e),onChange:o=>t.casChange(e.modelKey?e.modelKey:"elCascader",e.modelKey),props:t.loadData({path:e.path,childPath:e.childPath,params:e.params,checkStrictly:e.checkStrictly,multiple:e.multiple})},null,8,["filterable","disabled","collapse-tags","show-all-levels","placeholder","style","options","onVisibleChange","onChange","props"])):l.createCommentVNode("",!0),e.type==="date"?(l.openBlock(),l.createBlock(T,{key:10,shortcuts:t.shortcuts,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),disabled:e.disabled?e.disabled:!1,type:e.dType,"value-format":e.valFormat,"disabled-date":o=>t.disabledDate(o,e.timeRangeNum),onFocus:t.handleFocus,onCalendarChange:t.handleChange,"unlink-panels":"",format:t.timeFormat(e.dType),"start-placeholder":"开始日期","end-placeholder":"结束日期",placeholder:"选择日期"},null,8,["shortcuts","modelValue","onUpdate:modelValue","style","disabled","type","value-format","disabled-date","onFocus","onCalendarChange","format"])):l.createCommentVNode("",!0),e.type==="time"?(l.openBlock(),l.createBlock(F,{key:11,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),"value-format":"HH:mm:ss",disabled:e.disabled?e.disabled:!1,placeholder:e.placeholder?e.placeholder:"请选择时间"},null,8,["modelValue","onUpdate:modelValue","style","disabled","placeholder"])):l.createCommentVNode("",!0),e.type==="switch"?(l.openBlock(),l.createElementBlock("span",Ve,l.toDisplayString(e.bText),1)):l.createCommentVNode("",!0),e.type==="switch"?(l.openBlock(),l.createBlock(S,{key:13,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,disabled:e.disabled?e.disabled:!1,"active-text":e.rt?e.rt:"","inactive-text":e.lt?e.lt:"","active-value":e.rv?e.rv:!0,"inactive-value":e.lv?e.lv:!1,"active-color":"#13ce66",onChange:o=>t.switchChange(arguments,e.modelKey),"inactive-color":"#ff4949"},null,8,["modelValue","onUpdate:modelValue","disabled","active-text","inactive-text","active-value","inactive-value","onChange"])):l.createCommentVNode("",!0),e.type==="switch"?(l.openBlock(),l.createElementBlock("span",_e,l.toDisplayString(e.fText),1)):l.createCommentVNode("",!0),e.type==="checkbox"?(l.openBlock(),l.createBlock(Q,{key:15,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,(o,u)=>(l.openBlock(),l.createBlock(H,{label:o.value,key:u,disabled:o.disabled?o.disabled:!1},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(o.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):l.createCommentVNode("",!0),e.type==="radio"?(l.openBlock(),l.createBlock(X,{key:16,modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,(o,u)=>(l.openBlock(),l.createBlock(J,{key:u,disabled:o.disabled?o.disabled:!1,label:o.value},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(o.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):l.createCommentVNode("",!0),e.type==="autocomplete"?(l.openBlock(),l.createBlock(L,{key:17,class:"inline-input",style:l.normalizeStyle({width:e.width?e.width+"px":"auto"}),modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,"fetch-suggestions":e.querySearch,placeholder:e.placeholder?e.placeholder:"请输入"},null,8,["style","modelValue","onUpdate:modelValue","fetch-suggestions","placeholder"])):l.createCommentVNode("",!0),e.type==="htmlarea"?(l.openBlock(),l.createElementBlock("div",{key:18,style:l.normalizeStyle({width:e.width?e.width+"px":"auto"})},[l.createVNode(I,{style:{"border-bottom":"1px solid #ccc"},editor:t.editorRef,defaultConfig:t.toolbarConfig,mode:"default"},null,8,["editor","defaultConfig"]),l.createVNode(z,{style:l.normalizeStyle({height:e.height?e.height+"px":"300px",overflowY:"hidden"}),modelValue:t.modelRemote[e.modelKey],"onUpdate:modelValue":o=>t.modelRemote[e.modelKey]=o,defaultConfig:t.editorConfig(e),mode:"default",onOnCreated:o=>t.handleCreated(o,e)},null,8,["style","modelValue","onUpdate:modelValue","defaultConfig","onOnCreated"])],4)):l.createCommentVNode("",!0)]),_:2},1032,["prop","style"])]),_:2},1032,["label-align"]))),128))]),_:3},8,["column","size","border","title"]))]),_:3},8,["model","label-position","rules","inline"])):l.createCommentVNode("",!0),l.createVNode(j,{modelValue:t.isAutoInput,"onUpdate:modelValue":i[2]||(i[2]=e=>t.isAutoInput=e),title:"辅助输入",size:"50%",direction:"rtl"},{default:l.withCtx(()=>[l.createElementVNode("div",xe,[Array.isArray(c.autoInputConfig.selectData)&&c.autoInputConfig.selectData.length>0?(l.openBlock(),l.createBlock(K,{key:0,modelValue:t.autoQuery.selectid,"onUpdate:modelValue":i[0]||(i[0]=e=>t.autoQuery.selectid=e),style:{"margin-right":"15px",width:"240px"},placeholder:"请选择"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(c.autoInputConfig.selectData,e=>(l.openBlock(),l.createBlock(E,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):l.createCommentVNode("",!0),c.autoInputConfig?.keywords?(l.openBlock(),l.createBlock(b,{key:1,style:{width:"200px"},placeholder:"请输入",modelValue:t.autoQuery.keywords,"onUpdate:modelValue":i[1]||(i[1]=e=>t.autoQuery.keywords=e)},null,8,["modelValue"])):l.createCommentVNode("",!0),Array.isArray(c.autoInputConfig.selectData)&&c.autoInputConfig.selectData.length>0||c.autoInputConfig?.keywords?(l.openBlock(),l.createBlock(C,{key:2,type:"primary",style:{"margin-left":"15px"},onClick:t.search},{default:l.withCtx(()=>[...i[3]||(i[3]=[l.createTextVNode("查询",-1)])]),_:1},8,["onClick"])):l.createCommentVNode("",!0)]),c.autoInputConfig?(l.openBlock(),l.createElementBlock("div",Fe,[l.createVNode(f,{id:"autoInputTable",ref:"autoInputTable",data:t.autoTableData,onCustomEvents:t.customEvents,load:t.load,loading:t.loading,page:t.page},null,8,["data","onCustomEvents","load","loading","page"])])):l.createCommentVNode("",!0)]),_:1},8,["modelValue"])]),_:3},8,["locale"])}const le=Z(oe,[["render",Se],["__scopeId","data-v-ada8ebe2"]]);le.install=function(n){n.component(le.name,le)};const Me=[ue,le];return{install:n=>{Me.forEach(i=>{n.component(i.name||i.__name,i)})}}}));
1
+ (function(E,Na){typeof exports=="object"&&typeof module<"u"?module.exports=Na(require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["vue","element-plus"],Na):(E=typeof globalThis<"u"?globalThis:E||self,E.jtui=Na(E.Vue,E.ElementPlus))})(this,(function(E,Na){"use strict";function Zz(e){var t={11:"北京",12:"天津",13:"河北",14:"山西",15:"内蒙古",21:"辽宁",22:"吉林",23:"黑龙江 ",31:"上海",32:"江苏",33:"浙江",34:"安徽",35:"福建",36:"江西",37:"山东",41:"河南",42:"湖北 ",43:"湖南",44:"广东",45:"广西",46:"海南",50:"重庆",51:"四川",52:"贵州",53:"云南",54:"西藏 ",61:"陕西",62:"甘肃",63:"青海",64:"宁夏",65:"新疆",71:"台湾",81:"香港",82:"澳门",91:"国外 "},r=!0;if(!e||!/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|X)$/i.test(e))r=!1;else if(!t[e.substr(0,2)])r=!1;else if(e.length==18){e=e.split("");for(var n=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2],o=[1,0,"X",9,8,7,6,5,4,3,2],i=0,a=0,u=0,s=0;s<17;s++)a=e[s],u=n[s],i+=a*u;o[i%11],o[i%11]!=e[17]&&(r=!1)}return r}class Jz{required(){return{required:!0,whitespace:!0,message:"该项必须填写",trigger:"blur"}}requiredFocus(){return{required:!0,whitespace:!0,message:"该项必须填写",trigger:"focus"}}range(t,r){return{min:Number(t),max:Number(r),message:`长度在 ${t} 到 ${r} 个字符`,trigger:"blur"}}len(t){return{len:Number(t),message:`字符长度必须是 ${t}`,trigger:"blur"}}num(){return{validator:(r,n,o)=>{isNaN(Number(n))&&o(new Error("必须是数字类型")),o()},trigger:"blur"}}email(){return{validator:(r,n,o)=>{/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(n)||o(new Error("邮箱格式不正确")),o()},trigger:"blur"}}idCard(){return{validator:(r,n,o)=>{Zz(n)||o(new Error("身份证号码不正确")),o()},trigger:"blur"}}phone(){return{validator:(r,n,o)=>{/^1[3-9]\d{9}$/.test(n)||o(new Error("手机号码不正确")),o()},trigger:"blur"}}letters(){return{validator:(r,n,o)=>{/^[a-zA-Z]+$/.test(n)||n===""?o():o(new Error("必须是英文字母"))},trigger:"blur"}}requireAll(){return{validator:(r,n,o)=>{n!==""&&n!==void 0&&n!==null?o():o(new Error("该项不能为空"))},trigger:"blur"}}requireSelect(){return{validator:(r,n,o)=>{Array.isArray(n)&&n.length>0?o():o(new Error("请至少选择一个"))},trigger:"blur"}}}function X3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fh={exports:{}},Qz=fh.exports,$3;function eV(){return $3||($3=1,(function(e,t){(function(r,n){e.exports=n()})(Qz,function(){var r=1e3,n=6e4,o=36e5,i="millisecond",a="second",u="minute",s="hour",l="day",c="week",f="month",p="quarter",d="year",v="date",m="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,h={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(z){var k=["th","st","nd","rd"],I=z%100;return"["+z+(k[(I-20)%10]||k[I]||k[0])+"]"}},b=function(z,k,I){var Y=String(z);return!Y||Y.length>=k?z:""+Array(k+1-Y.length).join(I)+z},w={s:b,z:function(z){var k=-z.utcOffset(),I=Math.abs(k),Y=Math.floor(I/60),$=I%60;return(k<=0?"+":"-")+b(Y,2,"0")+":"+b($,2,"0")},m:function z(k,I){if(k.date()<I.date())return-z(I,k);var Y=12*(I.year()-k.year())+(I.month()-k.month()),$=k.clone().add(Y,f),ee=I-$<0,Q=k.clone().add(Y+(ee?-1:1),f);return+(-(Y+(I-$)/(ee?$-Q:Q-$))||0)},a:function(z){return z<0?Math.ceil(z)||0:Math.floor(z)},p:function(z){return{M:f,y:d,w:c,d:l,D:v,h:s,m:u,s:a,ms:i,Q:p}[z]||String(z||"").toLowerCase().replace(/s$/,"")},u:function(z){return z===void 0}},x="en",A={};A[x]=h;var S="$isDayjsObject",B=function(z){return z instanceof W||!(!z||!z[S])},P=function z(k,I,Y){var $;if(!k)return x;if(typeof k=="string"){var ee=k.toLowerCase();A[ee]&&($=ee),I&&(A[ee]=I,$=ee);var Q=k.split("-");if(!$&&Q.length>1)return z(Q[0])}else{var F=k.name;A[F]=k,$=F}return!Y&&$&&(x=$),$||!Y&&x},H=function(z,k){if(B(z))return z.clone();var I=typeof k=="object"?k:{};return I.date=z,I.args=arguments,new W(I)},U=w;U.l=P,U.i=B,U.w=function(z,k){return H(z,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var W=(function(){function z(I){this.$L=P(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[S]=!0}var k=z.prototype;return k.parse=function(I){this.$d=(function(Y){var $=Y.date,ee=Y.utc;if($===null)return new Date(NaN);if(U.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var Q=$.match(g);if(Q){var F=Q[2]-1||0,O=(Q[7]||"0").substring(0,3);return ee?new Date(Date.UTC(Q[1],F,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,O)):new Date(Q[1],F,Q[3]||1,Q[4]||0,Q[5]||0,Q[6]||0,O)}}return new Date($)})(I),this.init()},k.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},k.$utils=function(){return U},k.isValid=function(){return this.$d.toString()!==m},k.isSame=function(I,Y){var $=H(I);return this.startOf(Y)<=$&&$<=this.endOf(Y)},k.isAfter=function(I,Y){return H(I)<this.startOf(Y)},k.isBefore=function(I,Y){return this.endOf(Y)<H(I)},k.$g=function(I,Y,$){return U.u(I)?this[Y]:this.set($,I)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(I,Y){var $=this,ee=!!U.u(Y)||Y,Q=U.p(I),F=function(de,he){var J=U.w($.$u?Date.UTC($.$y,he,de):new Date($.$y,he,de),$);return ee?J:J.endOf(l)},O=function(de,he){return U.w($.toDate()[de].apply($.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(he)),$)},j=this.$W,N=this.$M,q=this.$D,G="set"+(this.$u?"UTC":"");switch(Q){case d:return ee?F(1,0):F(31,11);case f:return ee?F(1,N):F(0,N+1);case c:var te=this.$locale().weekStart||0,fe=(j<te?j+7:j)-te;return F(ee?q-fe:q+(6-fe),N);case l:case v:return O(G+"Hours",0);case s:return O(G+"Minutes",1);case u:return O(G+"Seconds",2);case a:return O(G+"Milliseconds",3);default:return this.clone()}},k.endOf=function(I){return this.startOf(I,!1)},k.$set=function(I,Y){var $,ee=U.p(I),Q="set"+(this.$u?"UTC":""),F=($={},$[l]=Q+"Date",$[v]=Q+"Date",$[f]=Q+"Month",$[d]=Q+"FullYear",$[s]=Q+"Hours",$[u]=Q+"Minutes",$[a]=Q+"Seconds",$[i]=Q+"Milliseconds",$)[ee],O=ee===l?this.$D+(Y-this.$W):Y;if(ee===f||ee===d){var j=this.clone().set(v,1);j.$d[F](O),j.init(),this.$d=j.set(v,Math.min(this.$D,j.daysInMonth())).$d}else F&&this.$d[F](O);return this.init(),this},k.set=function(I,Y){return this.clone().$set(I,Y)},k.get=function(I){return this[U.p(I)]()},k.add=function(I,Y){var $,ee=this;I=Number(I);var Q=U.p(Y),F=function(N){var q=H(ee);return U.w(q.date(q.date()+Math.round(N*I)),ee)};if(Q===f)return this.set(f,this.$M+I);if(Q===d)return this.set(d,this.$y+I);if(Q===l)return F(1);if(Q===c)return F(7);var O=($={},$[u]=n,$[s]=o,$[a]=r,$)[Q]||1,j=this.$d.getTime()+I*O;return U.w(j,this)},k.subtract=function(I,Y){return this.add(-1*I,Y)},k.format=function(I){var Y=this,$=this.$locale();if(!this.isValid())return $.invalidDate||m;var ee=I||"YYYY-MM-DDTHH:mm:ssZ",Q=U.z(this),F=this.$H,O=this.$m,j=this.$M,N=$.weekdays,q=$.months,G=$.meridiem,te=function(he,J,xe,be){return he&&(he[J]||he(Y,ee))||xe[J].slice(0,be)},fe=function(he){return U.s(F%12||12,he,"0")},de=G||function(he,J,xe){var be=he<12?"AM":"PM";return xe?be.toLowerCase():be};return ee.replace(y,function(he,J){return J||(function(xe){switch(xe){case"YY":return String(Y.$y).slice(-2);case"YYYY":return U.s(Y.$y,4,"0");case"M":return j+1;case"MM":return U.s(j+1,2,"0");case"MMM":return te($.monthsShort,j,q,3);case"MMMM":return te(q,j);case"D":return Y.$D;case"DD":return U.s(Y.$D,2,"0");case"d":return String(Y.$W);case"dd":return te($.weekdaysMin,Y.$W,N,2);case"ddd":return te($.weekdaysShort,Y.$W,N,3);case"dddd":return N[Y.$W];case"H":return String(F);case"HH":return U.s(F,2,"0");case"h":return fe(1);case"hh":return fe(2);case"a":return de(F,O,!0);case"A":return de(F,O,!1);case"m":return String(O);case"mm":return U.s(O,2,"0");case"s":return String(Y.$s);case"ss":return U.s(Y.$s,2,"0");case"SSS":return U.s(Y.$ms,3,"0");case"Z":return Q}return null})(he)||Q.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(I,Y,$){var ee,Q=this,F=U.p(Y),O=H(I),j=(O.utcOffset()-this.utcOffset())*n,N=this-O,q=function(){return U.m(Q,O)};switch(F){case d:ee=q()/12;break;case f:ee=q();break;case p:ee=q()/3;break;case c:ee=(N-j)/6048e5;break;case l:ee=(N-j)/864e5;break;case s:ee=N/o;break;case u:ee=N/n;break;case a:ee=N/r;break;default:ee=N}return $?ee:U.a(ee)},k.daysInMonth=function(){return this.endOf(f).$D},k.$locale=function(){return A[this.$L]},k.locale=function(I,Y){if(!I)return this.$L;var $=this.clone(),ee=P(I,Y,!0);return ee&&($.$L=ee),$},k.clone=function(){return U.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},z})(),C=W.prototype;return H.prototype=C,[["$ms",i],["$s",a],["$m",u],["$H",s],["$W",l],["$M",f],["$y",d],["$D",v]].forEach(function(z){C[z[1]]=function(k){return this.$g(k,z[0],z[1])}}),H.extend=function(z,k){return z.$i||(z(k,W,H),z.$i=!0),H},H.locale=P,H.isDayjs=B,H.unix=function(z){return H(1e3*z)},H.en=A[x],H.Ls=A,H.p={},H})})(fh)),fh.exports}var tV=eV();const dn=X3(tV),rV=[{text:"昨天",value:()=>{const e=dn().subtract(1,"days").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"),t=dn().subtract(1,"days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");return[e,t]}},{text:"今天",value:()=>{const e=dn().hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"),t=dn().format("YYYY-MM-DD HH:mm:ss");return[e,t]}},{text:"最近2天",value:()=>{const e=dn().subtract(2,"days").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"),t=dn().subtract(1,"days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");return[e,t]}},{text:"最近3天",value:()=>{const e=dn().subtract(3,"days").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"),t=dn().subtract(1,"days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");return[e,t]}},{text:"最近一周",value:()=>{const e=dn().subtract(1,"weeks").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"),t=dn().subtract(1,"days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");return[e,t]}},{text:"最近一个月",value:()=>{const e=dn().subtract(1,"months").hour(0).minute(0).second(0).format("YYYY-MM-DD HH:mm:ss"),t=dn().subtract(1,"days").hour(23).minute(59).second(59).format("YYYY-MM-DD HH:mm:ss");return[e,t]}}];var nV={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值",alphaDescription:"透明度 {alpha}, 当前颜色 {color}",hueLabel:"选择色相值",hueDescription:"色相 {hue}, 当前颜色 {color}",svLabel:"选择饱和度与明度的值",svDescription:"饱和度 {saturation}, 明度 {brightness}, 当前颜色 {color}",predefineDescription:"选择 {value} 作为颜色"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},mention:{loading:"加载中"},dropdown:{toggleDropdown:"切换下拉选项"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 Delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计",selectAllLabel:"选择所有行",selectRowLabel:"选择当前行",expandRowLabel:"展开当前行",collapseRowLabel:"收起当前行",sortLabel:"按 {column} 排序",filterLabel:"按 {column} 过滤"},tag:{close:"关闭此标签"},tour:{next:"下一步",previous:"上一步",finish:"结束导览",close:"关闭此对话框"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};const dh=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r},oV=E.defineAsyncComponent(()=>Promise.resolve().then(()=>Kz).then(e=>e.Editor)),iV=E.defineAsyncComponent(()=>Promise.resolve().then(()=>Kz).then(e=>e.Toolbar)),aV=()=>{if(!document.querySelector('link[href*="wangeditor"]')){const e=document.createElement("link");e.rel="stylesheet",e.href="https://unpkg.com/@wangeditor/editor@latest/dist/css/style.css",document.head.appendChild(e)}},Ty={name:"jt-form",emits:["switchChange","focus","blur","casChange","cusBtn"],components:{Editor:oV,Toolbar:iV},props:{id:{type:[String,Number],require:!0},model:{type:Object,require:!0},formConfig:{type:Array,require:!0},labelWidth:{type:String,default:"80px"},inline:{type:Boolean,default:!1},size:{type:String,default:"default"},labelPosition:{type:String,default:"right"},rules:{type:Object,default:()=>({})},col:{type:Number,default:1},border:{type:Boolean,default:!1},collapseTags:{type:Boolean,default:!1},axios:{type:Function},title:{type:String,default:""},lazyLoadParams:{type:Object,default:null},autoInputConfig:{type:Object,default:null}},setup(e,{emit:t}){let r=E.ref(!0);const n=E.getCurrentInstance();let o=E.reactive({});const i=E.toRef(e,"lazyLoadParams"),a=E.computed(()=>e.model),u=E.ref(!1),s=E.ref(),l=E.reactive({selectid:"",keywords:""}),c=E.ref([{retjson:{},DataArray:[],Result:""}]);let f=[],p=E.ref(!1),d=E.ref(!1);const v=E.reactive({PageIndex:1,PageRowCount:50,total:100}),m=E.shallowRef(),g={},y=N=>({placeholder:N.placeholder?N.placeholder:"请输入内容...",readOnly:N.readOnly?N.readOnly:!1,autoFocus:N.autoFocus?N.autoFocus:!0,maxLength:N.maxlength?N.maxlength:null});E.onBeforeUnmount(()=>{const N=m.value;N?.destroy()});const h=(N,q)=>{aV(),a.value[q.modelKey]=atob(a.value[q.modelKey]),m.value=N};E.watch(a.value,N=>{e.formConfig.forEach(q=>{"submitKey"in q&&(a.value[q.submitKey]=N[q.modelKey])})}),e.rules&&(r.value=!1,A(),E.nextTick(()=>{r.value=!0}));function b(N){N.isPwd=!N.isPwd,N.isPwd?N.iType="text":N.iType="password"}function w(N){switch(N){case"large":return"36px";case"default":return"32px";case"small":return"28px"}}function x(N,q){t("switchChange",N[0],q)}function A(){let N=new Jz;Object.keys(e.rules).forEach(q=>{o[q]=[],e.rules[q].forEach(G=>{if(typeof G=="string"){let te=G.split("-");if(te[1]){let fe=te[1].split(",");o[q].push(N[te[0]](...fe))}else o[q].push(N[G]())}})})}function S(N,q){t("focus",N,q)}function B(N,q){t("blur",N,q)}function P(N){let{path:q,childPath:G}=N,te=N.multiple||!1,fe=N.checkStrictly||!1;return{lazy:!0,multiple:te,checkStrictly:fe,async lazyLoad(de,he){const{level:J,data:xe}=de;if(J===0){const{data:be}=await e.axios.post(q+G,N.params||i.value);he(be.map(ce=>({label:ce.name,leaf:ce.path==="-"||!ce.path,path:ce.path,value:ce.id,other:ce})))}if(J>0){if(xe.path==="-"||!xe.path){he();return}const{data:be}=await e.axios.post(q+xe.path,N.params||i.value);he(be.map(ce=>({label:ce.name,leaf:ce.path==="-"||!ce.path,path:ce.path,value:ce.id,other:ce})))}}}}function H(N,q){const G=n.refs[N][0].getCheckedNodes();t("casChange",G,q)}function U(N,q){t("cusBtn",N,q)}function W(){return e.formConfig.forEach(N=>{N.type=="htmlarea"&&(a.value[N.modelKey+"_base64"]=btoa(a.value[N.modelKey]))}),n.refs[e.id].validate()}function C(){n.refs[e.id].resetFields()}const z=E.ref(null),k=N=>{const[q]=N;z.value=q},I=()=>{z.value=null},Y=(N,q)=>{if(!z.value)return!1;if(q){const G=new Date(z.value).getTime()-q*24*60*60*1e3,te=new Date(z.value).getTime()+q*24*60*60*1e3;return N<G||N>te}else return!1};function $(N){return N=="datetime"||N=="datetimerange"?"YYYY-MM-DD HH:mm":N=="year"?"YYYY":N=="month"||N=="monthrange"?"YYYY-MM":N=="week"?"YYYY年第ww周":"YYYY-MM-DD"}async function ee(){Array.isArray(e?.autoInputConfig?.selectData)&&e.autoInputConfig.selectData.length>0?l.selectid=e.autoInputConfig.selectData[0].value:delete l.selectid,e.autoInputConfig.keywords||delete l.keywords,v.PageIndex=1,f=[],u.value=!0,E.nextTick(()=>{O()})}function Q(N,q){if(N=="cellClick"){const{row:G}=q;Object.keys(G).forEach(te=>{Object.keys(e.model).forEach(fe=>{fe==te&&(e.model[fe]=G[te])})}),u.value=!1}}async function F(){d.value=!1,v.PageIndex=1,f=[],O()}async function O(){if(d.value==!0)return;p.value=!0;const{data:N}=await e.axios.post(e.autoInputConfig.path+e.autoInputConfig.childPath,Object.assign(l,e.autoInputConfig.subParams,v)),q=N;if(q[0].Result==0){p.value=!1,s.value.loadData([]);return}c.value[0].retjson=q[0].retjson,q[0].retjson.isPages?(v.total=q[0].retjson.TotalCount,q[0].Result==0?d.value=!0:(f=f.concat(q[0].DataArray),s.value.loadData(f,()=>{p.value=!1,v.PageIndex++}))):s.value.loadData(q[0].DataArray,()=>{p.value=!1,d.value=!0})}async function j(N,q){const{path:G,childPath:te}=q;if(N){const{data:fe}=await e.axios.post(G+te,q.params||i.value);q.options=fe.map(de=>({label:de.name,leaf:de.path==="-"||!de.path,path:de.path,value:de.id,other:de}))}}return{casVisibleChange:j,handleChange:k,handleFocus:I,disabledDate:Y,isShow:r,eyeClick:b,switchChange:x,focus:S,resetAll:C,validateAll:W,itemClick:U,casChange:H,blur:B,loadData:P,type2size:w,rulesMap:o,shortcuts:rV,timeFormat:$,locale:nV,modelRemote:a,openAutoInput:ee,isAutoInput:u,autoQuery:l,autoTableData:c,customEvents:Q,search:F,loading:p,page:v,load:O,autoInputTable:s,editorRef:m,toolbarConfig:g,editorConfig:y,handleCreated:h}}},Z3=()=>{E.useCssVars(e=>({v39c94c33:e.labelWidth,v277c479c:e.labelPosition}))},J3=Ty.setup;Ty.setup=J3?(e,t)=>(Z3(),J3(e,t)):Z3;const uV={key:3,class:"ht-text"},sV=["onClick"],lV={key:12,style:{"margin-right":"5px"}},cV={key:14,style:{"margin-left":"5px"}},fV={class:"cell-item"},dV={key:0,style:{color:"red"}},pV={key:3,class:"ht-text"},hV=["onClick"],gV={key:12,style:{"margin-right":"5px"}},vV={key:14,style:{"margin-left":"5px"}},mV={class:"filter-box"};function yV(e,t,r,n,o,i){const a=E.resolveComponent("el-input"),u=E.resolveComponent("el-tooltip"),s=E.resolveComponent("el-input-number"),l=E.resolveComponent("el-option"),c=E.resolveComponent("el-select"),f=E.resolveComponent("el-cascader"),p=E.resolveComponent("el-date-picker"),d=E.resolveComponent("el-time-picker"),v=E.resolveComponent("el-switch"),m=E.resolveComponent("el-checkbox"),g=E.resolveComponent("el-checkbox-group"),y=E.resolveComponent("el-radio"),h=E.resolveComponent("el-radio-group"),b=E.resolveComponent("el-autocomplete"),w=E.resolveComponent("el-form-item"),x=E.resolveComponent("Toolbar"),A=E.resolveComponent("Editor"),S=E.resolveComponent("el-descriptions-item"),B=E.resolveComponent("el-descriptions"),P=E.resolveComponent("el-form"),H=E.resolveComponent("el-button"),U=E.resolveComponent("el-drawer"),W=E.resolveComponent("el-config-provider");return E.openBlock(),E.createBlock(W,{locale:n.locale},{default:E.withCtx(()=>[n.isShow?(E.openBlock(),E.createBlock(P,{key:0,model:r.model,"label-width":0,"label-position":r.labelPosition,rules:n.rulesMap,ref:r.id,inline:r.inline,"inline-message":"","status-icon":""},{default:E.withCtx(()=>[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(r.formConfig,(C,z)=>(E.openBlock(),E.createElementBlock(E.Fragment,{key:z},[r.inline?(E.openBlock(),E.createBlock(w,{key:0,label:C.label,"label-align":C.align||"center",prop:C.modelKey,style:E.normalizeStyle(C.width?C.width:"100%")},{default:E.withCtx(()=>[C.type==="empty"?(E.openBlock(),E.createElementBlock("div",{key:0,style:E.normalizeStyle({height:n.type2size(r.size)})},null,4)):E.createCommentVNode("",!0),C.type==="upload"?E.renderSlot(e.$slots,C.slotName?C.slotName:"upload",{key:1},void 0,!0):E.createCommentVNode("",!0),C.type==="custom"?(E.openBlock(),E.createBlock(u,{key:2,"popper-class":"jt-form-popper",placement:"top"},{content:E.withCtx(()=>[E.renderSlot(e.$slots,C.slotName,{},void 0,!0)]),default:E.withCtx(()=>[E.createVNode(a,{modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,placeholder:C.placeholder?C.placeholder:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1024)):E.createCommentVNode("",!0),C.type==="text"?(E.openBlock(),E.createElementBlock("span",uV,E.toDisplayString(r.model[C.modelKey]),1)):E.createCommentVNode("",!0),C.type==="input"?(E.openBlock(),E.createBlock(a,{key:4,style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),placeholder:C.placeholder?C.placeholder:"",type:C.iType?C.iType:"text",disabled:C.disabled?C.disabled:!1,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,onFocus:k=>n.focus(C.modelKey,k),onBlur:k=>n.blur(C.modelKey,k)},{suffix:E.withCtx(()=>["isPwd"in C?(E.openBlock(),E.createElementBlock("i",{key:0,class:E.normalizeClass(["jtIcon",C.isPwd?"iconyincangmima":"iconxianshimima"]),onClick:E.withModifiers(k=>n.eyeClick(C),["stop"])},null,10,sV)):E.createCommentVNode("",!0)]),_:2},1032,["style","placeholder","type","disabled","modelValue","onUpdate:modelValue","onFocus","onBlur"])):E.createCommentVNode("",!0),C.type==="textarea"?(E.openBlock(),E.createBlock(a,{key:5,style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),placeholder:C.placeholder?C.placeholder:"",type:"textarea",disabled:C.disabled?C.disabled:!1,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,maxlength:C.maxlength?C.maxlength:-1,autosize:typeof C.autosize=="boolean"?C.autosize:{minRows:C.minRows,maxRows:C.maxRows},"show-word-limit":C.maxlength!=-1,onFocus:k=>n.focus(C.modelKey,k),onBlur:k=>n.blur(C.modelKey,k)},null,8,["style","placeholder","disabled","modelValue","onUpdate:modelValue","maxlength","autosize","show-word-limit","onFocus","onBlur"])):E.createCommentVNode("",!0),C.type==="iNumber"?(E.openBlock(),E.createBlock(s,{key:6,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),disabled:C.disabled?C.disabled:!1,min:C.min!=null?C.min:-1/0,max:C.max!=null?C.max:1/0,"controls-position":"right"},null,8,["modelValue","onUpdate:modelValue","style","disabled","min","max"])):E.createCommentVNode("",!0),C.type==="select"?(E.openBlock(),E.createBlock(c,{key:7,"default-first-option":"",style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,disabled:C.disabled?C.disabled:!1,filterable:!!C.isCreate,"allow-create":!!C.isCreate,multiple:C.multiple!==void 0,"collapse-tags":C.collapse!==void 0,placeholder:C.placeholder?C.placeholder:""},{default:E.withCtx(()=>[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(C.options,k=>(E.openBlock(),E.createBlock(l,{key:k.value,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:2},1032,["style","modelValue","onUpdate:modelValue","disabled","filterable","allow-create","multiple","collapse-tags","placeholder"])):E.createCommentVNode("",!0),C.type==="select_r"?(E.openBlock(),E.createBlock(c,{key:8,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),disabled:C.disabled?C.disabled:!1,multiple:C.multiple!==void 0,"collapse-tags":C.collapse!==void 0,filterable:"",remote:"","remote-method":C.remoteMethod,placeholder:C.placeholder?C.placeholder:""},{default:E.withCtx(()=>[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(C.options,k=>(E.openBlock(),E.createBlock(l,{key:k.value,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","style","disabled","multiple","collapse-tags","remote-method","placeholder"])):E.createCommentVNode("",!0),C.type==="cascader"?(E.openBlock(),E.createBlock(f,{key:9,filterable:C.filterable!==void 0?C.filterable:!0,ref_for:!0,ref:C.modelKey?C.modelKey:"elCascader",disabled:C.disabled?C.disabled:!1,"collapse-tags":r.collapseTags,"show-all-levels":C.isEnd?C.isEnd:!0,placeholder:C.placeholder?C.placeholder:"请选择",style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),options:C.options||[],onVisibleChange:k=>n.casVisibleChange(k,C),onChange:k=>n.casChange(C.modelKey?C.modelKey:"elCascader",C.modelKey),props:n.loadData({path:C.path,childPath:C.childPath,params:C.params,checkStrictly:C.checkStrictly,multiple:C.multiple})},null,8,["filterable","disabled","collapse-tags","show-all-levels","placeholder","style","options","onVisibleChange","onChange","props"])):E.createCommentVNode("",!0),C.type==="date"?(E.openBlock(),E.createBlock(p,{key:10,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,shortcuts:n.shortcuts,style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),disabled:C.disabled?C.disabled:!1,type:C.dType,"value-format":C.valFormat,"unlink-panels":"","start-placeholder":"开始日期",format:n.timeFormat(C.dType),"disabled-date":k=>n.disabledDate(k,C.timeRangeNum),onFocus:n.handleFocus,onCalendarChange:n.handleChange,"end-placeholder":"结束日期",placeholder:"选择日期","range-separator":"至"},null,8,["modelValue","onUpdate:modelValue","shortcuts","style","disabled","type","value-format","format","disabled-date","onFocus","onCalendarChange"])):E.createCommentVNode("",!0),C.type==="time"?(E.openBlock(),E.createBlock(d,{key:11,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),"value-format":"HH:mm:ss",disabled:C.disabled?C.disabled:!1,placeholder:C.placeholder?C.placeholder:"请选择时间"},null,8,["modelValue","onUpdate:modelValue","style","disabled","placeholder"])):E.createCommentVNode("",!0),C.type==="switch"?(E.openBlock(),E.createElementBlock("span",lV,E.toDisplayString(C.bText),1)):E.createCommentVNode("",!0),C.type==="switch"?(E.openBlock(),E.createBlock(v,{key:13,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,disabled:C.disabled?C.disabled:!1,"active-text":C.rt?C.rt:"","inactive-text":C.lt?C.lt:"","active-color":"#13ce66",onChange:k=>n.switchChange(arguments,C.modelKey),"inactive-color":"#ff4949"},null,8,["modelValue","onUpdate:modelValue","disabled","active-text","inactive-text","onChange"])):E.createCommentVNode("",!0),C.type==="switch"?(E.openBlock(),E.createElementBlock("span",cV,E.toDisplayString(C.fText),1)):E.createCommentVNode("",!0),C.type==="checkbox"?(E.openBlock(),E.createBlock(g,{key:15,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k},{default:E.withCtx(()=>[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(C.options,(k,I)=>(E.openBlock(),E.createBlock(m,{label:k.value,key:I,disabled:k.disabled?k.disabled:!1},{default:E.withCtx(()=>[E.createTextVNode(E.toDisplayString(k.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):E.createCommentVNode("",!0),C.type==="radio"?(E.openBlock(),E.createBlock(h,{key:16,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k},{default:E.withCtx(()=>[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(C.options,(k,I)=>(E.openBlock(),E.createBlock(y,{key:I,disabled:k.disabled?k.disabled:!1,label:k.value},{default:E.withCtx(()=>[E.createTextVNode(E.toDisplayString(k.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):E.createCommentVNode("",!0),C.type==="autocomplete"?(E.openBlock(),E.createBlock(b,{key:17,class:"inline-input",style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,"fetch-suggestions":C.querySearch,placeholder:C.placeholder?C.placeholder:"请输入"},null,8,["style","modelValue","onUpdate:modelValue","fetch-suggestions","placeholder"])):E.createCommentVNode("",!0)]),_:2},1032,["label","label-align","prop","style"])):E.createCommentVNode("",!0)],64))),128)),r.inline?E.createCommentVNode("",!0):(E.openBlock(),E.createBlock(B,{key:0,column:r.col,size:r.size,border:r.border,title:r.title},{default:E.withCtx(()=>[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(r.formConfig,(C,z)=>(E.openBlock(),E.createBlock(S,{"label-align":C.align||"center",key:z},{label:E.withCtx(()=>[E.createElementVNode("div",fV,[C.modelKey in r.rules?(E.openBlock(),E.createElementBlock("span",dV,"*")):E.createCommentVNode("",!0),E.createTextVNode(" "+E.toDisplayString(C.label),1)])]),default:E.withCtx(()=>[E.createVNode(w,{prop:C.modelKey,style:E.normalizeStyle([{"margin-bottom":"0",display:"inline-block"},C.width?C.width:"100%"])},{default:E.withCtx(()=>[C.type==="empty"?(E.openBlock(),E.createElementBlock("div",{key:0,style:E.normalizeStyle({height:n.type2size(r.size)})},null,4)):E.createCommentVNode("",!0),C.type==="upload"?E.renderSlot(e.$slots,C.slotName?C.slotName:"upload",{key:1},void 0,!0):E.createCommentVNode("",!0),C.type==="custom"?(E.openBlock(),E.createBlock(u,{key:2,"popper-class":"jt-form-popper",placement:"top"},{content:E.withCtx(()=>[E.renderSlot(e.$slots,C.slotName,{},void 0,!0)]),default:E.withCtx(()=>[E.createVNode(a,{modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,placeholder:C.placeholder?C.placeholder:""},null,8,["modelValue","onUpdate:modelValue","placeholder"])]),_:2},1024)):E.createCommentVNode("",!0),C.type==="text"?(E.openBlock(),E.createElementBlock("span",pV,E.toDisplayString(r.model[C.modelKey]),1)):E.createCommentVNode("",!0),C.type==="input"?(E.openBlock(),E.createBlock(a,{key:4,style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),placeholder:C.placeholder?C.placeholder:"",type:C.iType?C.iType:"text",disabled:C.disabled?C.disabled:!1,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,onFocus:k=>n.focus(C.modelKey,k),onBlur:k=>n.blur(C.modelKey,k)},{suffix:E.withCtx(()=>["isPwd"in C?(E.openBlock(),E.createElementBlock("i",{key:0,class:E.normalizeClass(["jtIcon",C.isPwd?"iconyincangmima":"iconxianshimima"]),onClick:E.withModifiers(k=>n.eyeClick(C),["stop"])},null,10,hV)):E.createCommentVNode("",!0)]),_:2},1032,["style","placeholder","type","disabled","modelValue","onUpdate:modelValue","onFocus","onBlur"])):E.createCommentVNode("",!0),C.type==="textarea"?(E.openBlock(),E.createBlock(a,{key:5,style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),placeholder:C.placeholder?C.placeholder:"",type:"textarea",disabled:C.disabled?C.disabled:!1,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,maxlength:C.maxlength?C.maxlength:-1,autosize:typeof C.autosize=="boolean"?C.autosize:{minRows:C.minRows,maxRows:C.maxRows},"show-word-limit":C.maxlength!=-1,onFocus:k=>n.focus(C.modelKey,k),onBlur:k=>n.blur(C.modelKey,k)},null,8,["style","placeholder","disabled","modelValue","onUpdate:modelValue","maxlength","autosize","show-word-limit","onFocus","onBlur"])):E.createCommentVNode("",!0),C.type==="iNumber"?(E.openBlock(),E.createBlock(s,{key:6,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),disabled:C.disabled?C.disabled:!1,min:C.min!=null?C.min:-1/0,max:C.max!=null?C.max:1/0,"controls-position":"right"},null,8,["modelValue","onUpdate:modelValue","style","disabled","min","max"])):E.createCommentVNode("",!0),C.type==="select"?(E.openBlock(),E.createBlock(c,{key:7,"default-first-option":"",style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,disabled:C.disabled?C.disabled:!1,filterable:!!C.isCreate,"allow-create":!!C.isCreate,multiple:C.multiple!==void 0,"collapse-tags":C.collapse!==void 0,placeholder:C.placeholder?C.placeholder:""},{default:E.withCtx(()=>[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(C.options,k=>(E.openBlock(),E.createBlock(l,{key:k.value,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:2},1032,["style","modelValue","onUpdate:modelValue","disabled","filterable","allow-create","multiple","collapse-tags","placeholder"])):E.createCommentVNode("",!0),C.type==="select_r"?(E.openBlock(),E.createBlock(c,{key:8,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),disabled:C.disabled?C.disabled:!1,multiple:C.multiple!==void 0,"collapse-tags":C.collapse!==void 0,filterable:"",remote:"","remote-method":C.remoteMethod,placeholder:C.placeholder?C.placeholder:""},{default:E.withCtx(()=>[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(C.options,k=>(E.openBlock(),E.createBlock(l,{key:k.value,label:k.label,value:k.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","style","disabled","multiple","collapse-tags","remote-method","placeholder"])):E.createCommentVNode("",!0),C.type==="cascader"?(E.openBlock(),E.createBlock(f,{key:9,filterable:C.filterable!==void 0?C.filterable:!0,ref_for:!0,ref:C.modelKey?C.modelKey:"elCascader",disabled:C.disabled?C.disabled:!1,"collapse-tags":r.collapseTags,"show-all-levels":C.isEnd?C.isEnd:!0,placeholder:C.placeholder?C.placeholder:"请选择",style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),options:C.options||[],onVisibleChange:k=>n.casVisibleChange(k,C),onChange:k=>n.casChange(C.modelKey?C.modelKey:"elCascader",C.modelKey),props:n.loadData({path:C.path,childPath:C.childPath,params:C.params,checkStrictly:C.checkStrictly,multiple:C.multiple})},null,8,["filterable","disabled","collapse-tags","show-all-levels","placeholder","style","options","onVisibleChange","onChange","props"])):E.createCommentVNode("",!0),C.type==="date"?(E.openBlock(),E.createBlock(p,{key:10,shortcuts:n.shortcuts,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),disabled:C.disabled?C.disabled:!1,type:C.dType,"value-format":C.valFormat,"disabled-date":k=>n.disabledDate(k,C.timeRangeNum),onFocus:n.handleFocus,onCalendarChange:n.handleChange,"unlink-panels":"",format:n.timeFormat(C.dType),"start-placeholder":"开始日期","end-placeholder":"结束日期",placeholder:"选择日期"},null,8,["shortcuts","modelValue","onUpdate:modelValue","style","disabled","type","value-format","disabled-date","onFocus","onCalendarChange","format"])):E.createCommentVNode("",!0),C.type==="time"?(E.openBlock(),E.createBlock(d,{key:11,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),"value-format":"HH:mm:ss",disabled:C.disabled?C.disabled:!1,placeholder:C.placeholder?C.placeholder:"请选择时间"},null,8,["modelValue","onUpdate:modelValue","style","disabled","placeholder"])):E.createCommentVNode("",!0),C.type==="switch"?(E.openBlock(),E.createElementBlock("span",gV,E.toDisplayString(C.bText),1)):E.createCommentVNode("",!0),C.type==="switch"?(E.openBlock(),E.createBlock(v,{key:13,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,disabled:C.disabled?C.disabled:!1,"active-text":C.rt?C.rt:"","inactive-text":C.lt?C.lt:"","active-value":C.rv?C.rv:!0,"inactive-value":C.lv?C.lv:!1,"active-color":"#13ce66",onChange:k=>n.switchChange(arguments,C.modelKey),"inactive-color":"#ff4949"},null,8,["modelValue","onUpdate:modelValue","disabled","active-text","inactive-text","active-value","inactive-value","onChange"])):E.createCommentVNode("",!0),C.type==="switch"?(E.openBlock(),E.createElementBlock("span",vV,E.toDisplayString(C.fText),1)):E.createCommentVNode("",!0),C.type==="checkbox"?(E.openBlock(),E.createBlock(g,{key:15,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k},{default:E.withCtx(()=>[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(C.options,(k,I)=>(E.openBlock(),E.createBlock(m,{label:k.value,key:I,disabled:k.disabled?k.disabled:!1},{default:E.withCtx(()=>[E.createTextVNode(E.toDisplayString(k.label),1)]),_:2},1032,["label","disabled"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):E.createCommentVNode("",!0),C.type==="radio"?(E.openBlock(),E.createBlock(h,{key:16,modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k},{default:E.withCtx(()=>[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(C.options,(k,I)=>(E.openBlock(),E.createBlock(y,{key:I,disabled:k.disabled?k.disabled:!1,label:k.value},{default:E.withCtx(()=>[E.createTextVNode(E.toDisplayString(k.label),1)]),_:2},1032,["disabled","label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])):E.createCommentVNode("",!0),C.type==="autocomplete"?(E.openBlock(),E.createBlock(b,{key:17,class:"inline-input",style:E.normalizeStyle({width:C.width?C.width+"px":"auto"}),modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,"fetch-suggestions":C.querySearch,placeholder:C.placeholder?C.placeholder:"请输入"},null,8,["style","modelValue","onUpdate:modelValue","fetch-suggestions","placeholder"])):E.createCommentVNode("",!0),C.type==="htmlarea"?(E.openBlock(),E.createElementBlock("div",{key:18,style:E.normalizeStyle({width:C.width?C.width+"px":"auto"})},[E.createVNode(x,{style:{"border-bottom":"1px solid #ccc"},editor:n.editorRef,defaultConfig:n.toolbarConfig,mode:"default"},null,8,["editor","defaultConfig"]),E.createVNode(A,{style:E.normalizeStyle({height:C.height?C.height+"px":"300px",overflowY:"hidden"}),modelValue:n.modelRemote[C.modelKey],"onUpdate:modelValue":k=>n.modelRemote[C.modelKey]=k,defaultConfig:n.editorConfig(C),mode:"default",onOnCreated:k=>n.handleCreated(k,C)},null,8,["style","modelValue","onUpdate:modelValue","defaultConfig","onOnCreated"])],4)):E.createCommentVNode("",!0)]),_:2},1032,["prop","style"])]),_:2},1032,["label-align"]))),128))]),_:3},8,["column","size","border","title"]))]),_:3},8,["model","label-position","rules","inline"])):E.createCommentVNode("",!0),E.createVNode(U,{modelValue:n.isAutoInput,"onUpdate:modelValue":t[2]||(t[2]=C=>n.isAutoInput=C),title:"辅助输入",size:"50%",direction:"rtl"},{default:E.withCtx(()=>[E.createElementVNode("div",mV,[Array.isArray(r.autoInputConfig.selectData)&&r.autoInputConfig.selectData.length>0?(E.openBlock(),E.createBlock(c,{key:0,modelValue:n.autoQuery.selectid,"onUpdate:modelValue":t[0]||(t[0]=C=>n.autoQuery.selectid=C),style:{"margin-right":"15px",width:"240px"},placeholder:"请选择"},{default:E.withCtx(()=>[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(r.autoInputConfig.selectData,C=>(E.openBlock(),E.createBlock(l,{key:C.value,label:C.label,value:C.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])):E.createCommentVNode("",!0),r.autoInputConfig?.keywords?(E.openBlock(),E.createBlock(a,{key:1,style:{width:"200px"},placeholder:"请输入",modelValue:n.autoQuery.keywords,"onUpdate:modelValue":t[1]||(t[1]=C=>n.autoQuery.keywords=C)},null,8,["modelValue"])):E.createCommentVNode("",!0),Array.isArray(r.autoInputConfig.selectData)&&r.autoInputConfig.selectData.length>0||r.autoInputConfig?.keywords?(E.openBlock(),E.createBlock(H,{key:2,type:"primary",style:{"margin-left":"15px"},onClick:n.search},{default:E.withCtx(()=>[...t[3]||(t[3]=[E.createTextVNode("查询",-1)])]),_:1},8,["onClick"])):E.createCommentVNode("",!0)])]),_:1},8,["modelValue"])]),_:3},8,["locale"])}const ph=dh(Ty,[["render",yV],["__scopeId","data-v-b0365120"]]);ph.install=function(e){e.component(ph.name,ph)};function hh(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Py={exports:{}};var Q3;function bV(){return Q3||(Q3=1,(function(e,t){(function(r){e.exports=r()})(function(){return(function r(n,o,i){function a(l,c){if(!o[l]){if(!n[l]){var f=typeof hh=="function"&&hh;if(!c&&f)return f(l,!0);if(u)return u(l,!0);throw new Error("Cannot find module '"+l+"'")}var p=o[l]={exports:{}};n[l][0].call(p.exports,function(d){var v=n[l][1][d];return a(v||d)},p,p.exports,r,n,o,i)}return o[l].exports}for(var u=typeof hh=="function"&&hh,s=0;s<i.length;s++)a(i[s]);return a})({1:[function(r,n,o){var i=r("./utils");function a(s,l,c){i.defineNonEnumerable(this,"uploader",s),i.defineNonEnumerable(this,"file",l),i.defineNonEnumerable(this,"bytes",null),this.offset=c,this.tested=!1,this.retries=0,this.pendingRetry=!1,this.preprocessState=0,this.readState=0,this.loaded=0,this.total=0,this.chunkSize=i.evalOpts(s.opts.chunkSize,l,this),this.startByte=this.offset*this.chunkSize,this.endByte=this.computeEndByte(),this.xhr=null}var u=a.STATUS={PENDING:"pending",UPLOADING:"uploading",READING:"reading",SUCCESS:"success",ERROR:"error",COMPLETE:"complete",PROGRESS:"progress",RETRY:"retry"};i.extend(a.prototype,{_event:function(s,l){l=i.toArray(arguments),l.unshift(this),this.file._chunkEvent.apply(this.file,l)},computeEndByte:function(){var s=Math.min(this.file.size,(this.offset+1)*this.chunkSize);return this.file.size-s<this.chunkSize&&!this.uploader.opts.forceChunkSize&&(s=this.file.size),s},getParams:function(){return{chunkNumber:this.offset+1,chunkSize:this.chunkSize,currentChunkSize:this.endByte-this.startByte,totalSize:this.file.size,identifier:this.file.uniqueIdentifier,filename:this.file.name,relativePath:this.file.relativePath,totalChunks:this.file.chunks.length}},getTarget:function(s,l){return l.length?(s.indexOf("?")<0?s+="?":s+="&",s+l.join("&")):s},test:function(){this.xhr=new XMLHttpRequest,this.xhr.addEventListener("load",f,!1),this.xhr.addEventListener("error",f,!1);var s=i.evalOpts(this.uploader.opts.testMethod,this.file,this),l=this.prepareXhrRequest(s,!0);this.xhr.send(l);var c=this;function f(p){var d=c.status(!0);d===u.ERROR?(c._event(d,c.message()),c.uploader.uploadNextChunk()):d===u.SUCCESS?(c._event(d,c.message()),c.tested=!0):c.file.paused||(c.tested=!0,c.send())}},preprocessFinished:function(){this.endByte=this.computeEndByte(),this.preprocessState=2,this.send()},readFinished:function(s){this.readState=2,this.bytes=s,this.send()},send:function(){var s=this.uploader.opts.preprocess,l=this.uploader.opts.readFileFn;if(i.isFunction(s))switch(this.preprocessState){case 0:this.preprocessState=1,s(this);return;case 1:return}switch(this.readState){case 0:this.readState=1,l(this.file,this.file.fileType,this.startByte,this.endByte,this);return;case 1:return}if(this.uploader.opts.testChunks&&!this.tested){this.test();return}this.loaded=0,this.total=0,this.pendingRetry=!1,this.xhr=new XMLHttpRequest,this.xhr.upload.addEventListener("progress",d,!1),this.xhr.addEventListener("load",v,!1),this.xhr.addEventListener("error",v,!1);var c=i.evalOpts(this.uploader.opts.uploadMethod,this.file,this),f=this.prepareXhrRequest(c,!1,this.uploader.opts.method,this.bytes);this.xhr.send(f);var p=this;function d(m){m.lengthComputable&&(p.loaded=m.loaded,p.total=m.total),p._event(u.PROGRESS,m)}function v(m){var g=p.message();p.processingResponse=!0,p.uploader.opts.processResponse(g,function(y,h){if(p.processingResponse=!1,!!p.xhr){p.processedState={err:y,res:h};var b=p.status();if(b===u.SUCCESS||b===u.ERROR)p._event(b,h),b===u.ERROR&&p.uploader.uploadNextChunk();else{p._event(u.RETRY,h),p.pendingRetry=!0,p.abort(),p.retries++;var w=p.uploader.opts.chunkRetryInterval;w!==null?setTimeout(function(){p.send()},w):p.send()}}},p.file,p)}},abort:function(){var s=this.xhr;this.xhr=null,this.processingResponse=!1,this.processedState=null,s&&s.abort()},status:function(s){if(this.readState===1)return u.READING;if(this.pendingRetry||this.preprocessState===1)return u.UPLOADING;if(this.xhr){if(this.xhr.readyState<4||this.processingResponse)return u.UPLOADING;var l;this.uploader.opts.successStatuses.indexOf(this.xhr.status)>-1?l=u.SUCCESS:this.uploader.opts.permanentErrors.indexOf(this.xhr.status)>-1||!s&&this.retries>=this.uploader.opts.maxChunkRetries?l=u.ERROR:(this.abort(),l=u.PENDING);var c=this.processedState;return c&&c.err&&(l=u.ERROR),l}else return u.PENDING},message:function(){return this.xhr?this.xhr.responseText:""},progress:function(){if(this.pendingRetry)return 0;var s=this.status();return s===u.SUCCESS||s===u.ERROR?1:s===u.PENDING?0:this.total>0?this.loaded/this.total:0},sizeUploaded:function(){var s=this.endByte-this.startByte;return this.status()!==u.SUCCESS&&(s=this.progress()*s),s},prepareXhrRequest:function(s,l,c,f){var p=i.evalOpts(this.uploader.opts.query,this.file,this,l);p=i.extend(this.getParams(),p),p=this.uploader.opts.processParams(p,this.file,this,l);var d=i.evalOpts(this.uploader.opts.target,this.file,this,l),v=null;if(s==="GET"||c==="octet"){var m=[];i.each(p,function(g,y){m.push([encodeURIComponent(y),encodeURIComponent(g)].join("="))}),d=this.getTarget(d,m),v=f||null}else v=new FormData,i.each(p,function(g,y){v.append(y,g)}),typeof f<"u"&&v.append(this.uploader.opts.fileParameterName,f,this.file.name);return this.xhr.open(s,d,!0),this.xhr.withCredentials=this.uploader.opts.withCredentials,i.each(i.evalOpts(this.uploader.opts.headers,this.file,this,l),function(g,y){this.xhr.setRequestHeader(y,g)},this),v}}),n.exports=a},{"./utils":5}],2:[function(r,n,o){var i=r("./utils").each,a={_eventData:null,on:function(u,s){this._eventData||(this._eventData={}),this._eventData[u]||(this._eventData[u]=[]);var l=!1;i(this._eventData[u],function(c){if(c===s)return l=!0,!1}),l||this._eventData[u].push(s)},off:function(u,s){this._eventData||(this._eventData={}),!(!this._eventData[u]||!this._eventData[u].length)&&(s?i(this._eventData[u],function(l,c){if(l===s)return this._eventData[u].splice(c,1),!1},this):this._eventData[u]=[])},trigger:function(u){if(this._eventData||(this._eventData={}),!this._eventData[u])return!0;var s=this._eventData[u].slice.call(arguments,1),l=!1;return i(this._eventData[u],function(c){l=c.apply(this,s)===!1||l},this),!l}};n.exports=a},{"./utils":5}],3:[function(r,n,o){var i=r("./utils"),a=r("./event"),u=r("./file"),s=r("./chunk"),l="0.6.0",c=typeof window>"u",f=c?!1:window.navigator.msPointerEnabled,p=(function(){if(c)return!1;var g="slice",y=i.isDefined(window.File)&&i.isDefined(window.Blob)&&i.isDefined(window.FileList),h=null;return y&&(h=window.Blob.prototype,i.each(["slice","webkitSlice","mozSlice"],function(b){if(h[b])return g=b,!1}),y=!!h[g]),y&&(v.sliceName=g),h=null,y})(),d=(function(){if(c)return!1;var g=window.document.createElement("input");g.type="file";var y="webkitdirectory"in g||"directory"in g;return g=null,y})();function v(g){this.support=p,this.support&&(this.supportDirectory=d,i.defineNonEnumerable(this,"filePaths",{}),this.opts=i.extend({},v.defaults,g||{}),this.preventEvent=i.bind(this._preventEvent,this),u.call(this,this))}var m=function(g,y,h,b,w){w.readFinished(g.file[v.sliceName](h,b,y))};v.version=l,v.defaults={chunkSize:1024*1024,forceChunkSize:!1,simultaneousUploads:3,singleFile:!1,fileParameterName:"file",progressCallbacksInterval:500,speedSmoothingFactor:.1,query:{},headers:{},withCredentials:!1,preprocess:null,method:"multipart",testMethod:"GET",uploadMethod:"POST",prioritizeFirstAndLastChunk:!1,allowDuplicateUploads:!1,target:"/",testChunks:!0,generateUniqueIdentifier:null,maxChunkRetries:0,chunkRetryInterval:null,permanentErrors:[404,415,500,501],successStatuses:[200,201,202],onDropStopPropagation:!1,initFileFn:null,readFileFn:m,checkChunkUploadedByResponse:null,initialPaused:!1,processResponse:function(g,y){y(null,g)},processParams:function(g){return g}},v.utils=i,v.event=a,v.File=u,v.Chunk=s,v.prototype=i.extend({},u.prototype),i.extend(v.prototype,a),i.extend(v.prototype,{constructor:v,_trigger:function(g){var y=i.toArray(arguments),h=!this.trigger.apply(this,arguments);return g!=="catchAll"&&(y.unshift("catchAll"),h=!this.trigger.apply(this,y)||h),!h},_triggerAsync:function(){var g=arguments;i.nextTick(function(){this._trigger.apply(this,g)},this)},addFiles:function(g,y){var h=[],b=this.fileList.length;i.each(g,function(x){if((!f||f&&x.size>0)&&!(x.size%4096===0&&(x.name==="."||x.fileName==="."))){var A=this.generateUniqueIdentifier(x);if(this.opts.allowDuplicateUploads||!this.getFromUniqueIdentifier(A)){var S=new u(this,x,this);S.uniqueIdentifier=A,this._trigger("fileAdded",S,y)?h.push(S):u.prototype.removeFile.call(this,S)}}},this);var w=this.fileList.slice(b);this._trigger("filesAdded",h,w,y)?(i.each(h,function(x){this.opts.singleFile&&this.files.length>0&&this.removeFile(this.files[0]),this.files.push(x)},this),this._trigger("filesSubmitted",h,w,y)):i.each(w,function(x){u.prototype.removeFile.call(this,x)},this)},addFile:function(g,y){this.addFiles([g],y)},cancel:function(){for(var g=this.fileList.length-1;g>=0;g--)this.fileList[g].cancel()},removeFile:function(g){u.prototype.removeFile.call(this,g),this._trigger("fileRemoved",g)},generateUniqueIdentifier:function(g){var y=this.opts.generateUniqueIdentifier;if(i.isFunction(y))return y(g);var h=g.relativePath||g.webkitRelativePath||g.fileName||g.name;return g.size+"-"+h.replace(/[^0-9a-zA-Z_-]/img,"")},getFromUniqueIdentifier:function(g){var y=!1;return i.each(this.files,function(h){if(h.uniqueIdentifier===g)return y=h,!1}),y},uploadNextChunk:function(g){var y=!1,h=s.STATUS.PENDING,b=this.uploader.opts.checkChunkUploadedByResponse;if(this.opts.prioritizeFirstAndLastChunk&&(i.each(this.files,function(x){if(!x.paused&&!(b&&!x._firstResponse&&x.isUploading())){if(x.chunks.length&&x.chunks[0].status()===h)return x.chunks[0].send(),y=!0,!1;if(x.chunks.length>1&&x.chunks[x.chunks.length-1].status()===h)return x.chunks[x.chunks.length-1].send(),y=!0,!1}}),y))return y;if(i.each(this.files,function(x){if(!x.paused){if(b&&!x._firstResponse&&x.isUploading())return;i.each(x.chunks,function(A){if(A.status()===h)return A.send(),y=!0,!1})}if(y)return!1}),y)return!0;var w=!1;return i.each(this.files,function(x){if(!x.isComplete())return w=!0,!1}),!w&&!g&&this.files.length&&this._triggerAsync("complete"),w},upload:function(g){var y=this._shouldUploadNext();if(y!==!1){!g&&this._trigger("uploadStart");for(var h=!1,b=1;b<=this.opts.simultaneousUploads-y&&(h=this.uploadNextChunk(!g)||h,!(!h&&g));b++);!h&&!g&&this._triggerAsync("complete")}},_shouldUploadNext:function(){var g=0,y=!0,h=this.opts.simultaneousUploads,b=s.STATUS.UPLOADING;return i.each(this.files,function(w){return i.each(w.chunks,function(x){if(x.status()===b&&(g++,g>=h))return y=!1,!1}),y}),y&&g},assignBrowse:function(g,y,h,b){typeof g.length>"u"&&(g=[g]),i.each(g,function(w){var x;w.tagName==="INPUT"&&w.type==="file"?x=w:(x=document.createElement("input"),x.setAttribute("type","file"),i.extend(x.style,{visibility:"hidden",position:"absolute",width:"1px",height:"1px"}),w.appendChild(x),w.addEventListener("click",function(S){w.tagName.toLowerCase()!=="label"&&x.click()},!1)),!this.opts.singleFile&&!h&&x.setAttribute("multiple","multiple"),y&&x.setAttribute("webkitdirectory","webkitdirectory"),b&&i.each(b,function(S,B){x.setAttribute(B,S)});var A=this;x.addEventListener("change",function(S){A._trigger(S.type,S),S.target.value&&(A.addFiles(S.target.files,S),S.target.value="")},!1)},this)},onDrop:function(g){this._trigger(g.type,g),this.opts.onDropStopPropagation&&g.stopPropagation(),g.preventDefault(),this._parseDataTransfer(g.dataTransfer,g)},_parseDataTransfer:function(g,y){g.items&&g.items[0]&&g.items[0].webkitGetAsEntry?this.webkitReadDataTransfer(g,y):this.addFiles(g.files,y)},webkitReadDataTransfer:function(g,y){var h=this,b=g.items.length,w=[];i.each(g.items,function(P){var H=P.webkitGetAsEntry();if(!H){B();return}H.isFile?A(P.getAsFile(),H.fullPath):x(H.createReader())});function x(P){P.readEntries(function(H){H.length?(b+=H.length,i.each(H,function(U){if(U.isFile){var W=U.fullPath;U.file(function(C){A(C,W)},S)}else U.isDirectory&&x(U.createReader())}),x(P)):B()},S)}function A(P,H){P.relativePath=H.substring(1),w.push(P),B()}function S(P){throw P}function B(){--b===0&&h.addFiles(w,y)}},_assignHelper:function(g,y,h){typeof g.length>"u"&&(g=[g]);var b=h?"removeEventListener":"addEventListener";i.each(g,function(w){i.each(y,function(x,A){w[b](A,x,!1)},this)},this)},_preventEvent:function(g){i.preventEvent(g),this._trigger(g.type,g)},assignDrop:function(g){this._onDrop=i.bind(this.onDrop,this),this._assignHelper(g,{dragover:this.preventEvent,dragenter:this.preventEvent,dragleave:this.preventEvent,drop:this._onDrop})},unAssignDrop:function(g){this._assignHelper(g,{dragover:this.preventEvent,dragenter:this.preventEvent,dragleave:this.preventEvent,drop:this._onDrop},!0),this._onDrop=null}}),n.exports=v},{"./chunk":1,"./event":2,"./file":4,"./utils":5}],4:[function(r,n,o){var i=r("./utils"),a=r("./chunk");function u(l,c,f){i.defineNonEnumerable(this,"uploader",l),this.isRoot=this.isFolder=l===this,i.defineNonEnumerable(this,"parent",f||null),i.defineNonEnumerable(this,"files",[]),i.defineNonEnumerable(this,"fileList",[]),i.defineNonEnumerable(this,"chunks",[]),i.defineNonEnumerable(this,"_errorFiles",[]),i.defineNonEnumerable(this,"file",null),this.id=i.uid(),this.isRoot||!c?this.file=null:i.isString(c)?(this.isFolder=!0,this.file=null,this.path=c,this.parent.path&&(c=c.substr(this.parent.path.length)),this.name=c.charAt(c.length-1)==="/"?c.substr(0,c.length-1):c):(this.file=c,this.fileType=this.file.type,this.name=c.fileName||c.name,this.size=c.size,this.relativePath=c.relativePath||c.webkitRelativePath||this.name,this._parseFile()),this.paused=l.opts.initialPaused,this.error=!1,this.allError=!1,this.aborted=!1,this.completed=!1,this.averageSpeed=0,this.currentSpeed=0,this._lastProgressCallback=Date.now(),this._prevUploadedSize=0,this._prevProgress=0,this.bootstrap()}i.extend(u.prototype,{_parseFile:function(){var l=s(this.relativePath);if(l.length){var c=this.uploader.filePaths;i.each(l,function(f,p){var d=c[f];d||(d=new u(this.uploader,f,this.parent),c[f]=d,this._updateParentFileList(d)),this.parent=d,d.files.push(this),l[p+1]||d.fileList.push(this)},this)}else this._updateParentFileList()},_updateParentFileList:function(l){l||(l=this);var c=this.parent;c&&c.fileList.push(l)},_eachAccess:function(l,c){if(this.isFolder){i.each(this.files,function(f,p){return l.call(this,f,p)},this);return}c.call(this,this)},bootstrap:function(){if(!this.isFolder){var l=this.uploader.opts;i.isFunction(l.initFileFn)&&l.initFileFn.call(this,this),this.abort(!0),this._resetError(),this._prevProgress=0;for(var c=l.forceChunkSize?Math.ceil:Math.floor,f=Math.max(c(this.size/l.chunkSize),1),p=0;p<f;p++)this.chunks.push(new a(this.uploader,this,p))}},_measureSpeed:function(){var l=this.uploader.opts.speedSmoothingFactor,c=Date.now()-this._lastProgressCallback;if(c){var f=this.sizeUploaded();this.currentSpeed=Math.max((f-this._prevUploadedSize)/c*1e3,0),this.averageSpeed=l*this.currentSpeed+(1-l)*this.averageSpeed,this._prevUploadedSize=f,this.parent&&this.parent._checkProgress()&&this.parent._measureSpeed()}},_checkProgress:function(l){return Date.now()-this._lastProgressCallback>=this.uploader.opts.progressCallbacksInterval},_chunkEvent:function(l,c,f){var p=this.uploader,d=a.STATUS,v=this,m=this.getRoot(),g=function(){v._measureSpeed(),p._trigger("fileProgress",m,v,l),v._lastProgressCallback=Date.now()};switch(c){case d.PROGRESS:this._checkProgress()&&g();break;case d.ERROR:this._error(),this.abort(!0),p._trigger("fileError",m,this,f,l);break;case d.SUCCESS:if(this._updateUploadedChunks(f,l),this.error)return;clearTimeout(this._progeressId),this._progeressId=0;var y=Date.now()-this._lastProgressCallback;y<p.opts.progressCallbacksInterval&&(this._progeressId=setTimeout(g,p.opts.progressCallbacksInterval-y)),this.isComplete()?(clearTimeout(this._progeressId),g(),this.currentSpeed=0,this.averageSpeed=0,p._trigger("fileSuccess",m,this,f,l),m.isComplete()&&p._trigger("fileComplete",m,this)):this._progeressId||g();break;case d.RETRY:p._trigger("fileRetry",m,this,l);break}},_updateUploadedChunks:function(l,c){var f=this.uploader.opts.checkChunkUploadedByResponse;if(f){var p=c.xhr;i.each(this.chunks,function(d){if(!d.tested){var v=f.call(this,d,l);d===c&&!v&&(d.xhr=null),v&&(d.xhr=p),d.tested=!0}},this),this._firstResponse?this.uploader.uploadNextChunk():(this._firstResponse=!0,this.uploader.upload(!0))}else this.uploader.uploadNextChunk()},_error:function(){this.error=this.allError=!0;for(var l=this.parent;l&&l!==this.uploader;)l._errorFiles.push(this),l.error=!0,l._errorFiles.length===l.files.length&&(l.allError=!0),l=l.parent},_resetError:function(){this.error=this.allError=!1;for(var l=this.parent,c=-1;l&&l!==this.uploader;)c=l._errorFiles.indexOf(this),l._errorFiles.splice(c,1),l.allError=!1,l._errorFiles.length||(l.error=!1),l=l.parent},isComplete:function(){if(!this.completed){var l=!1;this._eachAccess(function(c){if(!c.isComplete())return l=!0,!1},function(){if(this.error)l=!0;else{var c=a.STATUS;i.each(this.chunks,function(f){var p=f.status();if(p===c.ERROR||p===c.PENDING||p===c.UPLOADING||p===c.READING||f.preprocessState===1||f.readState===1)return l=!0,!1})}}),this.completed=!l}return this.completed},isUploading:function(){var l=!1;return this._eachAccess(function(c){if(c.isUploading())return l=!0,!1},function(){var c=a.STATUS.UPLOADING;i.each(this.chunks,function(f){if(f.status()===c)return l=!0,!1})}),l},resume:function(){this._eachAccess(function(l){l.resume()},function(){this.paused=!1,this.aborted=!1,this.uploader.upload()}),this.paused=!1,this.aborted=!1},pause:function(){this._eachAccess(function(l){l.pause()},function(){this.paused=!0,this.abort()}),this.paused=!0},cancel:function(){this.uploader.removeFile(this)},retry:function(l){var c=function(f){f.error&&f.bootstrap()};l?l.bootstrap():this._eachAccess(c,function(){this.bootstrap()}),this.uploader.upload()},abort:function(l){if(!this.aborted){this.currentSpeed=0,this.averageSpeed=0,this.aborted=!l;var c=this.chunks;l&&(this.chunks=[]);var f=a.STATUS.UPLOADING;i.each(c,function(p){p.status()===f&&(p.abort(),this.uploader.uploadNextChunk())},this)}},progress:function(){var l=0,c=0,f=0;return this._eachAccess(function(p,d){l+=p.progress()*p.size,c+=p.size,d===this.files.length-1&&(f=c>0?l/c:this.isComplete()?1:0)},function(){if(this.error){f=1;return}if(this.chunks.length===1){this._prevProgress=Math.max(this._prevProgress,this.chunks[0].progress()),f=this._prevProgress;return}var p=0;i.each(this.chunks,function(v){p+=v.progress()*(v.endByte-v.startByte)});var d=p/this.size;this._prevProgress=Math.max(this._prevProgress,d>.9999?1:d),f=this._prevProgress}),f},getSize:function(){var l=0;return this._eachAccess(function(c){l+=c.size},function(){l+=this.size}),l},getFormatSize:function(){var l=this.getSize();return i.formatSize(l)},getRoot:function(){if(this.isRoot)return this;for(var l=this.parent;l;){if(l.parent===this.uploader)return l;l=l.parent}return this},sizeUploaded:function(){var l=0;return this._eachAccess(function(c){l+=c.sizeUploaded()},function(){i.each(this.chunks,function(c){l+=c.sizeUploaded()})}),l},timeRemaining:function(){var l=0,c=0,f=0;return this._eachAccess(function(d,v){!d.paused&&!d.error&&(c+=d.size-d.sizeUploaded(),f+=d.averageSpeed),v===this.files.length-1&&(l=p(c,f))},function(){if(this.paused||this.error){l=0;return}var d=this.size-this.sizeUploaded();l=p(d,this.averageSpeed)}),l;function p(d,v){return d&&!v?Number.POSITIVE_INFINITY:!d&&!v?0:Math.floor(d/v)}},removeFile:function(l){if(l.isFolder)for(;l.files.length;){var c=l.files[l.files.length-1];this._removeFile(c)}this._removeFile(l)},_delFilePath:function(l){l.path&&this.filePaths&&delete this.filePaths[l.path],i.each(l.fileList,function(c){this._delFilePath(c)},this)},_removeFile:function(l){if(!l.isFolder){i.each(this.files,function(p,d){if(p===l)return this.files.splice(d,1),!1},this),l.abort();for(var c=l.parent,f;c&&c!==this;)f=c.parent,c._removeFile(l),c=f}l.parent===this&&i.each(this.fileList,function(p,d){if(p===l)return this.fileList.splice(d,1),!1},this),!this.isRoot&&this.isFolder&&!this.files.length&&(this.parent._removeFile(this),this.uploader._delFilePath(this)),l.parent=null},getType:function(){return this.isFolder?"folder":this.file.type&&this.file.type.split("/")[1]},getExtension:function(){return this.isFolder?"":this.name.substr((~-this.name.lastIndexOf(".")>>>0)+2).toLowerCase()}}),n.exports=u;function s(l){var c=[],f=l.split("/"),p=f.length,d=1;if(f.splice(p-1,1),p--,f.length)for(;d<=p;)c.push(f.slice(0,d++).join("/")+"/");return c}},{"./chunk":1,"./utils":5}],5:[function(r,n,o){var i=Object.prototype,a=Array.prototype,u=i.toString,s=function(d){return u.call(d)==="[object Function]"},l=Array.isArray||function(d){return u.call(d)==="[object Array]"},c=function(d){return u.call(d)==="[object Object]"&&Object.getPrototypeOf(d)===i},f=0,p={uid:function(){return++f},noop:function(){},bind:function(d,v){return function(){return d.apply(v,arguments)}},preventEvent:function(d){d.preventDefault()},stop:function(d){d.preventDefault(),d.stopPropagation()},nextTick:function(d,v){setTimeout(p.bind(d,v),0)},toArray:function(d,v,m){return v===void 0&&(v=0),m===void 0&&(m=d.length),a.slice.call(d,v,m)},isPlainObject:c,isFunction:s,isArray:l,isObject:function(d){return Object(d)===d},isString:function(d){return typeof d=="string"},isUndefined:function(d){return typeof d>"u"},isDefined:function(d){return typeof d<"u"},each:function(d,v,m){if(p.isDefined(d.length))for(var g=0,y=d.length;g<y&&v.call(m,d[g],g,d)!==!1;g++);else for(var h in d)if(v.call(m,d[h],h,d)===!1)break},evalOpts:function(d,v){return p.isFunction(d)&&(v=p.toArray(arguments),d=d.apply(null,v.slice(1))),d},extend:function(){var d,v,m,g,y,h,b=arguments[0]||{},w=1,x=arguments.length,A=!1;for(typeof b=="boolean"&&(A=b,b=arguments[1]||{},w++),typeof b!="object"&&!s(b)&&(b={}),w===x&&(b=this,w--);w<x;w++)if((d=arguments[w])!=null)for(v in d)m=b[v],g=d[v],b!==g&&(A&&g&&(c(g)||(y=l(g)))?(y?(y=!1,h=m&&l(m)?m:[]):h=m&&c(m)?m:{},b[v]=p.extend(A,h,g)):g!==void 0&&(b[v]=g));return b},formatSize:function(d){return d<1024?d.toFixed(0)+" bytes":d<1024*1024?(d/1024).toFixed(0)+" KB":d<1024*1024*1024?(d/1024/1024).toFixed(1)+" MB":(d/1024/1024/1024).toFixed(1)+" GB"},defineNonEnumerable:function(d,v,m){Object.defineProperty(d,v,{enumerable:!1,configurable:!0,writable:!0,value:m})}};n.exports=p},{}]},{},[3])(3)})})(Py)),Py.exports}var wV=bV();const eS=X3(wV);function EV(e){const t=Math.floor(e/31536e3);if(t)return t+" 年";const r=Math.floor((e%=31536e3)/86400);if(r)return r+" 天";const n=Math.floor((e%=86400)/3600);if(n)return n+" 小时";const o=Math.floor((e%=3600)/60);return o?o+" 分钟":e%60+" 秒"}const CV={props:{file:{type:Object,default(){return{}}},list:{type:Boolean,default:!1}},setup(e){const t=ref(!1),r=ref(""),n=ref(!1);e.file.fileType.indexOf("image")!=-1&&(n.value=!0);const o=E.reactive({response:null,paused:e.file.paused,error:e.file.error,averageSpeed:e.file.averageSpeed,currentSpeed:e.file.currentSpeed,isComplete:e.file.isComplete(),isUploading:e.file.isUploading(),size:e.file.getSize(),formatedSize:e.file.getFormatSize(),uploadedSize:e.file.sizeUploaded(),progress:e.file.progress(),timeRemaining:e.file.timeRemaining(),type:e.file.getType(),extension:e.file.getExtension(),_handlers:{}}),i={_fileProgress:()=>{o.progress=Math.floor(e.file.progress()*100),o.averageSpeed=e.file.averageSpeed,o.currentSpeed=e.file.currentSpeed,o.timeRemaining=e.file.timeRemaining(),p()},_fileSuccess:(w,x,A)=>{w&&l(A),i._fileProgress(),o.error=!1,o.isComplete=!0,o.isUploading=!1},_fileComplete:()=>{i._fileSuccess()},_fileError(w,x,A){i._fileProgress(),l(A),o.error=!0,o.isComplete=!1,o.isUploading=!1}},a=["fileProgress","fileSuccess","fileComplete","fileError"],u=o._handlers={},s=w=>(u[w]=(...x)=>{c(w,x)},u[w]);a.forEach(w=>{e.file.uploader.on(w,s(w))});function l(w){let x=w;try{x=JSON.parse(w)}catch{return}o.response=x}function c(w,x){const A=x[0],S=x[1],B=e.list?A:S;if(e.file===B){if(e.list&&w==="fileSuccess"){l(x[2]);return}i[`_${w}`](...x)}}function f(){return`${eS.utils.formatSize(o.averageSpeed)} / s`}function p(){o.paused=e.file.paused,o.error=e.file.error,o.isUploading=e.file.isUploading()}function d(){e.file.pause(),p(),i._fileProgress()}function v(){e.file.resume(),p()}function m(){e.file.cancel()}function g(){o.isComplete=!1,e.file.retry(),p()}const y=E.computed(()=>{const w=o.timeRemaining,x=e.file;if(w===Number.POSITIVE_INFINITY||w===0)return"";let A=EV(w);const S=x.uploader.opts.parseTimeRemaining;return S&&(A=S(w,A)),A}),h=E.computed(()=>o.error?"上传失败":o.isComplete?"上传成功":o.progress+"%");function b(){const w=new FileReader;w.onload=x=>{r.value=x.target.result,t.value=!0},w.readAsDataURL(e.file.file)}return{fileObj:o,formatedAverageSpeed:f,pause:d,resume:v,remove:m,retry:g,formatedTimeRemaining:y,formatStatus:h,isImage:n,dialogVisible:t,rviewClick:b,imgBase64:r}}},xV={class:"file-list-box"},DV={class:"file-name-box"},SV={class:"file-name"},AV={class:"progress-btns"},kV={class:"progress-box"},OV={class:"btns-box"},BV={key:0,class:"upload-info"},FV=["src"];function _V(e,t,r,n,o,i){const a=E.resolveComponent("el-button"),u=E.resolveComponent("el-progress"),s=E.resolveComponent("el-dialog");return E.openBlock(),E.createElementBlock(E.Fragment,null,[E.createElementVNode("div",xV,[E.createElementVNode("div",DV,[E.createElementVNode("span",SV,E.toDisplayString(r.file.name),1),n.isImage?(E.openBlock(),E.createBlock(a,{key:0,style:{"margin-left":"10px"},size:"small",onClick:n.rviewClick},{default:E.withCtx(()=>[...t[5]||(t[5]=[E.createTextVNode("预览",-1)])]),_:1},8,["onClick"])):E.createCommentVNode("",!0)]),E.createElementVNode("div",AV,[E.createElementVNode("div",kV,[E.createVNode(u,{"text-inside":!0,"stroke-width":26,status:n.fileObj.error?"exception":"success",percentage:n.fileObj.progress},{default:E.withCtx(()=>[E.createElementVNode("span",null,E.toDisplayString(n.formatStatus),1)]),_:1},8,["status","percentage"])]),E.createElementVNode("div",OV,[E.withDirectives(E.createElementVNode("span",{class:"jtIcon iconzanting1",onClick:t[0]||(t[0]=(...l)=>n.resume&&n.resume(...l))},null,512),[[E.vShow,n.fileObj.paused]]),E.withDirectives(E.createElementVNode("span",{class:"jtIcon icontingzhi",onClick:t[1]||(t[1]=(...l)=>n.pause&&n.pause(...l))},null,512),[[E.vShow,!n.fileObj.paused]]),E.createElementVNode("span",{class:"jtIcon iconzhongqi",onClick:t[2]||(t[2]=(...l)=>n.retry&&n.retry(...l))}),E.createElementVNode("span",{class:"jtIcon iconguanbi1",onClick:t[3]||(t[3]=(...l)=>n.remove&&n.remove(...l))})])]),n.fileObj.isUploading?(E.openBlock(),E.createElementBlock("div",BV,[E.createElementVNode("span",null,E.toDisplayString(n.fileObj.formatedSize),1),E.createElementVNode("span",null,E.toDisplayString(n.formatedAverageSpeed()),1),E.createElementVNode("span",null,"预计还剩 "+E.toDisplayString(n.formatedTimeRemaining),1)])):E.createCommentVNode("",!0)]),E.createVNode(s,{modelValue:n.dialogVisible,"onUpdate:modelValue":t[4]||(t[4]=l=>n.dialogVisible=l),title:"图片预览",width:"70%"},{default:E.withCtx(()=>[E.createElementVNode("img",{style:{width:"100%"},src:n.imgBase64,alt:""},null,8,FV)]),_:1},8,["modelValue"])],64)}const TV={components:{UploaderFile:dh(CV,[["render",_V],["__scopeId","data-v-7f0fb5f8"]]),UploaderDrap:Object.assign({name:"uploader-drop"},{props:{uploader:Object},setup(e){const t=E.ref(""),r=E.ref(),n=E.ref(!0),o=e;function i(s){s.preventDefault(),t.value="uploader-dragover"}function a(s){s.preventDefault(),t.value=""}function u(s){s.preventDefault(),t.value="uploader-droped"}return E.onMounted(()=>{n.value=o.uploader.support;const s=r.value;E.nextTick(()=>{o.uploader.assignDrop(s),o.uploader.on("dragover",i),o.uploader.on("dragleave",a),o.uploader.on("drop",u)})}),E.onBeforeUnmount(()=>{const s=r.value;o.uploader.off("dragover",i),o.uploader.off("dragleave",a),o.uploader.off("drop",u),E.nextTick(()=>{o.uploader.unAssignDrop(s)})}),(s,l)=>E.withDirectives((E.openBlock(),E.createElementBlock("div",{class:E.normalizeClass(["uploader-drop",t.value]),ref_key:"drop",ref:r},[E.renderSlot(s.$slots,"default")],2)),[[E.vShow,n.value]])}})},props:{mode:{type:String,default:"2"},options:{type:Object,default(){return{}}},autostart:{type:Boolean,default:!0},text:String,accept:{type:String,default:"*/*"},isDirectory:{type:Boolean,default:!1},singleFile:{type:Boolean,default:!1}},setup(e,{emit:t}){const r="fileAdded",n="filesAdded",o="uploadStart",i="fileRemoved";let a=E.ref(!1),u=E.ref([]),s=E.ref([]);const l=E.ref("");let c=E.reactive(new eS({initialPaused:!e.autostart,...e.options})),f=E.ref();const p={uploadStart:()=>{a.value=!0}};function d(A){return A.replace(/[A-Z]/g,S=>`-${S.toLowerCase()}`)}c.on("catchAll",v);function v(...A){const S=A[0],P={[r]:!0,[n]:!0,[o]:"uploadStart",[i]:!0}[S];if(P){if(P===!0)return;p[P](A.slice(1))}A[0]=d(S),t(...A)}c.on(r,m);function m(A){if(t(d(r),A),A.ignored)return!1}c.on(n,g);function g(A,S){if(t(d(n),A,S),A.ignored||S.ignored)return!1}c.on("fileRemoved",y);function y(A){u.value=c.files,s.value=c.fileList,t(d(i),A)}c.on("filesSubmitted",h);function h(A,S){A.value=c.files,S.value=c.fileList,e.autostart&&c.upload()}function b(){c.assignBrowse(f.value,e.isDirectory,e.singleFile,{accept:e.accept})}E.onUnmounted(()=>{c.off("catchAll",v),c.off(r,m),c.off(n,g),c.off("fileRemoved",y),c.off("filesSubmitted",h),c=null});function w(A){}function x(A){const S=(A.clipboardData||window.clipboardData).items;if(!S||S.length===0){Na.ElMessage.error("当前浏览器不支持本地");return}for(let B=0;B<S.length;B++){let P=S[B].getAsFile();if(P==null){l.value="",Na.ElMessage.error("上传失败,粘贴的内容不是文件 ");return}c.addFile(P),c.pause()}}return{chooseFile:b,fileBtnRef:f,fileList:E.computed(()=>c.fileList),uploader:c,onDropComplet:w,files:u,handlePaste:x,cvVal:l}}},PV={style:{height:"100%"}},jV={key:0},NV={key:1,style:{display:"flex","justify-content":"center"}},RV={style:{"text-align":"center"}},IV={class:"el-upload__text"},LV={style:{"margin-bottom":"10px"}},MV={class:"drag-file-list"},zV={key:0};function VV(e,t,r,n,o,i){const a=E.resolveComponent("uploader-file"),u=E.resolveComponent("el-popover"),s=E.resolveComponent("el-input"),l=E.resolveComponent("uploader-drap");return E.openBlock(),E.createElementBlock("div",PV,[r.mode=="1"?(E.openBlock(),E.createBlock(u,{key:0,title:"上传列表",placement:"bottom-start",width:350,trigger:"hover"},{reference:E.withCtx(()=>[E.createElementVNode("label",{class:"uploader-btn",ref:"fileBtnRef",onClick:t[0]||(t[0]=(...c)=>n.chooseFile&&n.chooseFile(...c))},E.toDisplayString(r.text),513)]),default:E.withCtx(()=>[n.fileList.length?(E.openBlock(),E.createElementBlock("div",jV,[E.createElementVNode("ul",null,[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(n.fileList,c=>(E.openBlock(),E.createElementBlock("li",{key:c.id},[E.createVNode(a,{file:c,list:!0},null,8,["file"])]))),128))])])):(E.openBlock(),E.createElementBlock("div",NV,[...t[4]||(t[4]=[E.createElementVNode("span",null,"暂无上传的文件",-1)])]))]),_:1})):E.createCommentVNode("",!0),r.mode=="2"?(E.openBlock(),E.createElementBlock("div",{key:1,class:"drag-upload-box",onPaste:t[3]||(t[3]=(...c)=>n.handlePaste&&n.handlePaste(...c))},[E.createVNode(l,{class:"jt-upload-drop",uploader:n.uploader,onDropComplete:n.onDropComplet},{default:E.withCtx(()=>[E.createElementVNode("div",RV,[t[7]||(t[7]=E.createElementVNode("i",{class:"jtIcon iconshangchuan jt-upload-icon"},null,-1)),E.createElementVNode("div",IV,[E.createElementVNode("p",LV,[t[5]||(t[5]=E.createTextVNode("点击输入框,请按ctrl+v粘贴文件 ",-1)),E.createVNode(s,{modelValue:n.cvVal,"onUpdate:modelValue":t[1]||(t[1]=c=>n.cvVal=c),type:"text",style:{width:"80%"}},null,8,["modelValue"])]),t[6]||(t[6]=E.createTextVNode(" 将文件拖到此处,或 ",-1)),E.createElementVNode("label",{class:"uploader-btn",ref:"fileBtnRef",onClick:t[2]||(t[2]=(...c)=>n.chooseFile&&n.chooseFile(...c))},E.toDisplayString(r.text),513)])])]),_:1},8,["uploader","onDropComplete"]),E.createElementVNode("div",MV,[n.fileList.length?(E.openBlock(),E.createElementBlock("div",zV,[E.createElementVNode("ul",null,[(E.openBlock(!0),E.createElementBlock(E.Fragment,null,E.renderList(n.fileList,c=>(E.openBlock(),E.createElementBlock("li",{key:c.id},[E.createVNode(a,{file:c,list:!0},null,8,["file"])]))),128))])])):E.createCommentVNode("",!0)])],32)):E.createCommentVNode("",!0)])}const HV={name:"jt-upload",components:{UploadFile:dh(TV,[["render",VV],["__scopeId","data-v-f6c71077"]])},setup(e,{emit:t}){const r=E.reactive({target:e.target,testChunks:!0,chunkSize:1048576,simultaneousUploads:e.simultaneousUploads,singleFile:e.singleFile,allowDuplicateUploads:e.allowDuplicateUploads}),n=E.reactive({accept:e.accept});let o=E.ref();function i(){return o.value.fileList}function a(){o.value.uploader.resume()}function u(){const d=arguments[0].file;e.axios.post(e.mergePath,{filename:d.name,identifier:arguments[0].uniqueIdentifier,totalSize:d.size,type:d.type}).then(v=>{if("Result"in v.data&&v.data.Result==500){const m=o.value.fileList.findIndex(g=>g.name==d.name&&g.size==d.size);o.value.fileList.splice(m,1),Na.ElMessage.warning(d.name+v.data.Msg+",请重新上传")}else t("success",v)}).catch(function(v){console.log(v)})}function s(d,v,m,g){t("error",d,v,m,g)}function l(d){t("added",d)}function c(d,v){t("addeds",d,v)}function f(){for(;o.value.fileList.length!=0;)o.value.fileList.pop()}function p(d){t("removed",d)}return{options:r,attrs:n,getFiles:i,goOnUpload:a,onFileSuccess:u,onFileError:s,fileAdded:l,filesAdded:c,clearList:f,listRef:o,onFileRemoved:p}},props:{target:{type:String,required:!0},mergePath:{type:String,required:!0},simultaneousUploads:{type:Number,default:3},text:{type:String,default:"点击上传"},accept:{type:String,default:"*/*"},singleFile:{type:Boolean,default:!1},allowDuplicateUploads:{type:Boolean,default:!0},autoStart:{type:Boolean,default:!0},singleMode:{type:Boolean,default:!1},axios:{type:Function}}};function UV(e,t,r,n,o,i){const a=E.resolveComponent("UploadFile");return E.openBlock(),E.createBlock(a,{options:n.options,onFileAdded:n.fileAdded,onFilesAdded:n.filesAdded,onFileSuccess:n.onFileSuccess,onFileError:n.onFileError,onFileRemoved:n.onFileRemoved,text:r.text,accept:r.accept,singleFile:r.singleFile,autoStart:r.autoStart,ref:"listRef"},null,8,["options","onFileAdded","onFilesAdded","onFileSuccess","onFileError","onFileRemoved","text","accept","singleFile","autoStart"])}const gh=dh(HV,[["render",UV],["__scopeId","data-v-4c88dd30"]]);gh.install=function(e){e.component(gh.name,gh)};var vc={},tS;function qV(){return tS||(tS=1,Object.defineProperty(vc,"__esModule",{value:!0}),vc.default=void 0,vc.default={vxe:{base:{pleaseInput:"请输入",pleaseSelect:"请选择",comma:",",fullStop:"。"},loading:{text:"加载中..."},error:{downErr:"下载失败",errLargeData:"当绑定的数据量过大时,应该请使用 {0},否则可能会出现卡顿",groupFixed:"如果使用分组表头,冻结列必须按组设置",groupMouseRange:'分组表头与 "{0}" 不能同时使用,这可能会出现错误',groupTag:'分组列头应该使用 "{0}" 而不是 "{1}",这可能会出现错误',scrollErrProp:'启用虚拟滚动后不支持该参数 "{0}"',errConflicts:'参数 "{0}" 与 "{1}" 有冲突',modelConflicts:'绑定的字段值 "{0}" 与 "{1}" 存在冲突,将会出现错误',notSupportProp:'当启用参数 "{0}" 时不支持 "{1}",应该为 "{2}",否则将会出现错误',reqSupportProp:'当使用 "{0}" 时,应该设置 "{1}",否则可能会出现错误',notConflictProp:'当使用 "{0}" 时,应该设置 "{1}",否则可能会存在功能冲突',unableInsert:"无法插入到指定位置,请检查参数是否正确",useErr:'安装 "{0}" 模块时发生错误,可能顺序不正确,依赖的模块需要在 Table 之前安装',barUnableLink:"工具栏无法关联表格",expandContent:'展开行的插槽应该是 "content",请检查是否正确',reqComp:'缺少 "{0}" 组件,请检查是否正确安装。 https://vxeui.com/#/start/useGlobal',reqModule:'缺少 "{0}" 模块',reqProp:'缺少必要的 "{0}" 参数,这可能会导致出现错误',emptyProp:'参数 "{0}" 不允许为空',errProp:'不支持的参数 "{0}",可能为 "{1}"',colRepet:'column.{0}="{1}" 重复了,这可能会导致某些功能无法使用',notFunc:'方法 "{0}" 不存在',errFunc:'参数 "{0}" 不是一个方法',notValidators:'全局校验 "{0}" 不存在',notFormats:'全局格式化 "{0}" 不存在',notCommands:'全局指令 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:'树结构不支持 "{0}"',noGroup:'数据分组后不支持 "{0}"',notProp:'不支持的参数 "{0}"',checkProp:'当数据量过大时可能会导致复选框卡顿,建议设置参数 "{0}" 提升渲染速度',coverProp:'"{0}" 的参数 "{1}" 重复定义,这可能会出现错误',uniField:'字段名 "{0}" 重复定义,这可能会出现错误',repeatKey:'主键重复 {0}="{1}",这可能会出现错误',repeatProp:'参数重复 {0}="{1}",这可能会出现错误',delFunc:'方法 "{0}" 已废弃,请使用 "{1}"',delProp:'参数 "{0}" 已废弃,请使用 "{1}"',delEvent:'事件 "{0}" 已废弃,请使用 "{1}"',removeProp:'参数 "{0}" 已废弃,不建议使用,这可能会导致出现错误',errFormat:'全局的格式化内容应该使用 "VXETable.formats" 定义,挂载 "formatter={0}" 的方式已不建议使用',notType:'不支持的文件类型 "{0}"',notExp:"该浏览器不支持导入/导出功能",impFields:"导入失败,请检查字段名和数据格式是否正确",treeNotImp:"树表格不支持导入",treeCrossDrag:"只能拖拽第一层级",treeDragChild:"父级不能拖拽到自己的子级中",reqPlugin:'扩展插件未安装 "{1}" https://vxeui.com/other{0}/#/{1}/install',errMaxRow:"超过支持的最大数据量 {0} 行,这可能会导致出现错误",useNew:"不建议使用 {0},请使用 {1}",errorVersion:"版本不匹配,当前版本 {0},最低支持版本为 {1}"},table:{emptyText:"暂无数据",allTitle:"全选/取消",seqTitle:"序号",actionTitle:"操作",confirmFilter:"筛选",resetFilter:"重置",allFilter:"全部",sortAsc:"升序:最低到最高",sortDesc:"降序:最高到最低",filter:"对所选的列启用筛选",impSuccess:"成功导入 {0} 条记录",expLoading:"正在导出中",expSuccess:"导出成功",expError:"导出失败",expFilename:"导出_{0}",expOriginFilename:"导出_源_{0}",customTitle:"列设置",customAll:"全部",customConfirm:"确认",customClose:"关闭",customCancel:"取消",customRestore:"恢复默认",maxFixedCol:"最大冻结列的数量不能超过 {0} 个",maxGroupCol:"最大分组字段的数量不能超过 {0} 个",dragTip:"移动:{0}",resizeColTip:"宽:{0} 像素",resizeRowTip:"高:{0} 像素",rowGroupContentTotal:"{0}({1})",menuLoading:"加载中..."},grid:{selectOneRecord:"请至少选择一条记录!",deleteSelectRecord:"您确定要删除所选记录吗?",removeSelectRecord:"您确定要移除所选记录吗?",dataUnchanged:"数据未改动!",delSuccess:"成功删除所选记录!",saveSuccess:"保存成功!",operError:"发生错误,操作失败!"},select:{clear:"清除",allChecked:"全选",total:"{0} / {1}",search:"搜索",loadingText:"加载中",emptyText:"暂无数据",maxSize:"最大可选择的数量不能超过 {0} 个",overSizeErr:"已超出最大可选数量 {0} 个,超出部分将被忽略!",searchEmpty:"未匹配到数据!"},tree:{searchEmpty:"未匹配到数据!",dragTip:"移动:{0}"},treeSelect:{clearChecked:"清除",allChecked:"全选",allExpand:"全部展开",clearExpand:"全部收起",total:"已选 {0}",search:"搜索",emptyText:"暂无数据"},pager:{goto:"前往",gotoTitle:"页数",pagesize:"{0}条/页",total:"共 {0} 条记录",pageClassifier:"页",homePage:"首页",homePageTitle:"首页",prevPage:"上一页",prevPageTitle:"上一页",nextPage:"下一页",nextPageTitle:"下一页",prevJump:"向上跳页",prevJumpTitle:"向上跳页",nextJump:"向下跳页",nextJumpTitle:"向下跳页",endPage:"末页",endPageTitle:"末页"},alert:{title:"系统提示"},button:{confirm:"确认",cancel:"取消",clear:"清除"},filter:{search:"搜索"},custom:{cstmTitle:"列设置",cstmRestore:"恢复默认",cstmCancel:"取消",cstmConfirm:"确定",cstmConfirmRestore:"请确认是否恢复成默认列配置?",cstmDragTarget:"移动:{0}",setting:{colSort:"排序",sortHelpTip:"点击并拖动图标可以调整顺序",colTitle:"列标题",colResizable:"列宽(像素)",colVisible:"是否显示",colFixed:"冻结列",colFixedMax:"冻结列(最多 {0} 列)",fixedLeft:"左侧",fixedUnset:"不设置",fixedRight:"右侧"}},import:{modes:{covering:"覆盖方式(直接覆盖表格数据)",insert:"底部追加(在表格的底部追加新数据)",insertTop:"顶部追加(在表格的顶部追加新数据)",insertBottom:"底部追加(在表格的底部追加新数据)"},impTitle:"导入数据",impFile:"文件名",impSelect:"选择文件",impType:"文件类型",impOpts:"参数设置",impMode:"导入模式",impConfirm:"导入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"网页(*.html)",xml:"XML 数据(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{empty:"空数据",current:"当前数据(当前页的数据)",selected:"选中数据(当前页选中的数据)",all:"全量数据(包括所有分页的数据)"},printTitle:"打印数据",expTitle:"导出数据",expName:"文件名",expNamePlaceholder:"请输入文件名",expSheetName:"标题",expSheetNamePlaceholder:"请输入标题",expType:"保存类型",expMode:"选择数据",expCurrentColumn:"全部字段",expColumn:"选择字段",expOpts:"参数设置",expOptHeader:"表头",expHeaderTitle:"是否需要表头",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expOptTitle:"列标题",expTitleTitle:"是否为列标题,否则显示为列的字段名",expColgroupTitle:"如果存在,则支持带有分组结构的表头",expOptMerge:"合并",expMergeTitle:"如果存在,则支持带有合并结构的单元格",expOptAllExpand:"展开树",expAllExpandTitle:"如果存在,则支持将带有层级结构的数据全部展开",expOptUseStyle:"样式",expUseStyleTitle:"如果存在,则支持带样式的单元格",expOptOriginal:"源数据",expOriginalTitle:"如果为源数据,则支持导入到表格中",expPrint:"打印",expConfirm:"导出",expCancel:"取消"},modal:{errTitle:"错误提示",zoomMin:"最小化",zoomIn:"最大化",zoomOut:"还原",close:"关闭",miniMaxSize:"最小化窗口的数量不能超过 {0} 个",footPropErr:"show-footer 仅用于启用表尾,需配合 show-confirm-button | show-cancel-button | 插槽使用"},drawer:{close:"关闭"},form:{folding:"收起",unfolding:"展开"},toolbar:{import:"导入",export:"导出",print:"打印",refresh:"刷新",zoomIn:"全屏",zoomOut:"还原",custom:"列设置",customAll:"全部",customConfirm:"确认",customRestore:"重置",fixedLeft:"冻结在左侧",fixedRight:"冻结在右侧",cancelFixed:"取消冻结列"},datePicker:{yearTitle:"{0} 年"},dateRangePicker:{pleaseRange:"请选择开始日期与结束日期"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}},numberInput:{currencySymbol:"¥"},imagePreview:{popupTitle:"预览",operBtn:{zoomOut:"缩小",zoomIn:"放大",pctFull:"等比例缩放",pct11:"显示原始尺寸",rotateLeft:"向左旋转",rotateRight:"向右旋转",print:"点击打印图片",download:"点击下载图片"}},upload:{fileBtnText:"点击或拖拽上传",imgBtnText:"点击或拖拽上传",dragPlaceholder:"请把文件拖放到这个区域即可上传",imgSizeHint:"单张{0}",imgCountHint:"最多{0}张",fileTypeHint:"支持 {0} 文件类型",fileSizeHint:"单个文件大小不超过{0}",fileCountHint:"最多可上传{0}个文件",uploadTypeErr:"文件类型不匹配!",overCountErr:"最多只能选择{0}个文件!",overCountExtraErr:"已超出最大数量{0}个,超出的{1}个文件将被忽略!",overSizeErr:"文件大小最大不能超过{0}!",manualUpload:"点击上传",reUpload:"重新上传",uploadProgress:"上传中 {0}%",uploadErr:"上传失败",uploadSuccess:"上传成功",moreBtnText:"更多({0})",viewItemTitle:"点击查看",morePopup:{readTitle:"查看列表",imageTitle:"上传图片",fileTitle:"上传文件"}},empty:{defText:"暂无数据"},colorPicker:{clear:"清除",confirm:"确认",copySuccess:"已复制到剪贴板:{0}",hex:"十六进制"},formDesign:{formName:"表单名称",defFormTitle:"未命名的表单",widgetPropTab:"控件属性",widgetFormTab:"表单属性",error:{wdFormUni:"该类型的控件在表单中只允许添加一个",wdSubUni:"该类型的控件在子表中只允许添加一个"},styleSetting:{btn:"样式设置",title:"表单的样式设置",layoutTitle:"控件布局",verticalLayout:"上下布局",horizontalLayout:"横向布局",styleTitle:"标题样式",boldTitle:"标题加粗",fontBold:"加粗",fontNormal:"常规",colonTitle:"显示冒号",colonVisible:"显示",colonHidden:"隐藏",alignTitle:"对齐方式",widthTitle:"标题宽度",alignLeft:"居左",alignRight:"居右",unitPx:"像素",unitPct:"百分比"},widget:{group:{base:"基础控件",layout:"布局控件",system:"系统控件",module:"模块控件",chart:"图表控件",advanced:"高级控件"},copyTitle:"副本_{0}",component:{input:"输入框",textarea:"文本域",select:"下拉选择",row:"一行多列",title:"标题",text:"文本",subtable:"子表",VxeSwitch:"是/否",VxeInput:"输入框",VxeNumberInput:"数字",VxeDatePicker:"日期",VxeTextarea:"文本域",VxeSelect:"下拉选择",VxeTreeSelect:"树形选择",VxeRadioGroup:"单选框",VxeCheckboxGroup:"复选框",VxeUploadFile:"文件",VxeUploadImage:"图片",VxeRate:"评分",VxeSlider:"滑块"}},widgetProp:{name:"控件名称",placeholder:"提示语",required:"必填校验",multiple:"允许多选",displaySetting:{name:"显示设置",pc:"电脑端",mobile:"手机端",visible:"显示",hidden:"隐藏"},dataSource:{name:"数据源",defValue:"选项{0}",addOption:"添加选项",batchEditOption:"批量编辑",batchEditTip:"每行对应一个选项,支持从表格、Excel、WPS 中直接复制粘贴。",batchEditSubTip:"每行对应一个选项,如果是分组,子项可以是空格或制表键开头,支持从表格、Excel、WPS 中直接复制粘贴。",buildOption:"生成选项"},rowProp:{colSize:"列数",col2:"两列",col3:"三列",col4:"四列",col6:"六列",layout:"布局"},textProp:{name:"内容",alignTitle:"对齐方式",alignLeft:"居左",alignCenter:"居中",alignRight:"居右",colorTitle:"字体颜色",sizeTitle:"字体大小",boldTitle:"字体加粗",fontNormal:"常规",fontBold:"加粗"},subtableProp:{seqTitle:"序号",showSeq:"显示序号",showCheckbox:"允许多选",errSubDrag:"子表不支持该控件,请使用其他控件",colPlace:"将控件拖拽进来"},uploadProp:{limitFileCount:"文件数量限制",limitFileSize:"文件大小限制",multiFile:"允许上传多个文件",limitImgCount:"图片数量限制",limitImgSize:"图片大小限制",multiImg:"允许上传多张图片"}}},listDesign:{fieldSettingTab:"字段设置",listSettingTab:"参数设置",searchTitle:"查询条件",listTitle:"列表字段",searchField:"查询字段",listField:"列表字段",activeBtn:{ActionButtonUpdate:"编辑",ActionButtonDelete:"删除"},search:{addBtn:"编辑",emptyText:"未配置查询条件",editPopupTitle:"编辑查询字段"},searchPopup:{colTitle:"标题",saveBtn:"保存"}},text:{copySuccess:"已复制到剪贴板",copyError:"当前环境不支持该操作"},countdown:{formats:{yyyy:"年",MM:"月",dd:"天",HH:"时",mm:"分",ss:"秒"}},gantt:{tFullFormat:{year:"{yyyy}年",quarter:"{yyyy}年第{q}季度",month:"{yyyy}年{MM}月",week:"{yyyy}年第{W}周",day:"{yyyy}年{MM}月 {E}",date:"{yyyy}年{MM}月{dd}日",hour:"{yyyy}年{MM}月{dd}日{HH}时",minute:"{yyyy}年{MM}月{dd}日{HH}时{mm}分",second:"{yyyy}年{MM}月{dd}日{HH}时{mm}分{ss}秒"},tSimpleFormat:{year:"{yyyy}年",quarter:"{q}季度",month:"{M}月",week:"{W}周",day:"{d}",date:"{d}",hour:"{HH}",minute:"{mm}",second:"{ss}"},dayss:{w0:"日",w1:"一",w2:"二",w3:"三",w4:"四",w5:"五",w6:"六"}},plugins:{extendCellArea:{area:{mergeErr:"无法对合并单元格进行该操作",multiErr:"无法对多重选择区域进行该操作",selectErr:"无法操作指定区域的单元格",extendErr:"如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作",cpInvalidErr:"该操作无法进行,您选择的区域中存在被禁止的列({0})"},fnr:{title:"查找和替换",findLabel:"查找",replaceLabel:"替换",findTitle:"查找内容:",replaceTitle:"替换为:",tabs:{find:"查找",replace:"替换"},filter:{re:"正则表达式",whole:"全词匹配",sensitive:"区分大小写"},btns:{findNext:"查找下一个",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"单元格",value:"值"},body:{row:"行:{0}",col:"列:{0}"},empty:"(空值)",reError:"无效的正则表达式",recordCount:"已找到 {0} 个单元格",notCell:"找不到匹配的单元格",replaceSuccess:"成功替换 {0} 个单元格"}},extendPivotTable:{aggregation:{grouping:"分组",values:"值",groupPlaceholder:"拖至此处进行分组",valuesPlaceholder:"拖至此处进行聚合",dragExistCol:"该列已存在",sortHelpTip:"点击并拖动图标可以调整顺序"},aggFuncs:{sum:"求和",count:"计数",avg:"平均值",min:"最小值",max:"最大值",first:"首个值",last:"末尾值"}},filterComplexInput:{menus:{fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结左侧",fixedRight:"冻结右侧"},cases:{equal:"等于",gt:"大于",lt:"小于",begin:"开头是",endin:"结尾是",include:"包含",isSensitive:"区分大小写"}},filterCombination:{menus:{sort:"排序",clearSort:"清除排序",sortAsc:"升序",sortDesc:"降序",fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结左侧",fixedRight:"冻结右侧",clearFilter:"清除筛选",textOption:"文本筛选",numberOption:"数值筛选",dateOption:"日期筛选"},popup:{title:"自定义筛选的方式",currColumnTitle:"显示行:",and:"与",or:"或",describeHtml:"可用 ? 代表单个字符<br/>用 * 代表任意多个字符"},cases:{equal:"等于",unequal:"不等于",gt:"大于",ge:"大于或等于",lt:"小于",le:"小于或等于",begin:"开头是",notbegin:"开头不是",endin:"结尾是",notendin:"结尾不是",include:"包含",exclude:"不包含",between:"介于",isAfter:"在以下日期之后",eqAfter:"在以下日期之后或与之相同",isBefore:"在以下日期之前",eqBefore:"在以下日期之前或与之相同",top10:"前10项",aboveAverage:"高于平均值",belowAverage:"低于平均值",before:"之前",after:"之后",tomorrow:"明天",today:"今天",yesterday:"昨天",nextWeek:"下周",thisWeek:"本周",lastWeek:"上周",nextMonth:"下月",thisMonth:"本月",lastMonth:"上月",nextYear:"明年",thisYear:"今年",lastYear:"去年",yearToDate:"本年度截止到现在",custom:"自定义筛选",insensitive:"不区分大小写",isSensitive:"区分大小写"},empty:"(空白)",notData:"无匹配项"}},pro:{area:{mergeErr:"无法对合并单元格进行该操作",multiErr:"无法对多重选择区域进行该操作",extendErr:"如果延伸的区域包含被合并的单元格,所有合并的单元格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替换",findLabel:"查找",replaceLabel:"替换",findTitle:"查找内容:",replaceTitle:"替换为:",tabs:{find:"查找",replace:"替换"},filter:{re:"正则表达式",whole:"全词匹配",sensitive:"区分大小写"},btns:{findNext:"查找下一个",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"单元格",value:"值"},empty:"(空值)",reError:"无效的正则表达式",recordCount:"已找到 {0} 个单元格",notCell:"找不到匹配的单元格",replaceSuccess:"成功替换 {0} 个单元格"}},renderer:{search:"搜索",cases:{equal:"等于",unequal:"不等于",gt:"大于",ge:"大于或等于",lt:"小于",le:"小于或等于",begin:"开头是",notbegin:"开头不是",endin:"结尾是",notendin:"结尾不是",include:"包含",exclude:"不包含",between:"介于",top10:"前10项",aboveAverage:"高于平均值",belowAverage:"低于平均值",custom:"自定义筛选",insensitive:"不区分大小写",isSensitive:"区分大小写"},combination:{menus:{sort:"排序",clearSort:"清除排序",sortAsc:"升序",sortDesc:"降序",fixedColumn:"冻结列",fixedGroup:"冻结分组",cancelFixed:"取消冻结",fixedLeft:"冻结到左侧",fixedRight:"冻结到右侧",clearFilter:"清除筛选",textOption:"文本筛选",numberOption:"数值筛选",dateOption:"日期筛选"},popup:{title:"自定义筛选的方式",currColumnTitle:"显示行:",and:"与",or:"或",describeHtml:"可用 ? 代表单个字符<br/>用 * 代表任意多个字符"},empty:"(空白)",notData:"无匹配项"}}}}),vc}qV();const WV=[ph,gh],GV={install:e=>{WV.forEach(t=>{e.component(t.name||t.__name,t)})}};var at=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function KV(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ra(e){var t={exports:{}};return e(t,t.exports),t.exports}var hi,vh,mh=function(e){return e&&e.Math==Math&&e},Be=mh(typeof globalThis=="object"&&globalThis)||mh(typeof window=="object"&&window)||mh(typeof self=="object"&&self)||mh(typeof at=="object"&&at)||(function(){return this})()||Function("return this")(),jy=Function.prototype,rS=jy.apply,YV=jy.bind,nS=jy.call,oS=typeof Reflect=="object"&&Reflect.apply||(YV?nS.bind(rS):function(){return nS.apply(rS,arguments)}),iS=Function.prototype,Ny=iS.bind,Ry=iS.call,XV=Ny&&Ny.bind(Ry),dt=Ny?function(e){return e&&XV(Ry,e)}:function(e){return e&&function(){return Ry.apply(e,arguments)}},fr=function(e){return typeof e=="function"},Nr=function(e){try{return!!e()}catch{return!0}},Rr=!Nr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),mc=Function.prototype.call,Yr=mc.bind?mc.bind(mc):function(){return mc.apply(mc,arguments)},aS={}.propertyIsEnumerable,uS=Object.getOwnPropertyDescriptor,$V=uS&&!aS.call({1:2},1)?function(e){var t=uS(this,e);return!!t&&t.enumerable}:aS,Iy={f:$V},Nn=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ZV=dt({}.toString),JV=dt("".slice),Ia=function(e){return JV(ZV(e),8,-1)},Ly=Be.Object,QV=dt("".split),sS=Nr(function(){return!Ly("z").propertyIsEnumerable(0)})?function(e){return Ia(e)=="String"?QV(e,""):Ly(e)}:Ly,eH=Be.TypeError,My=function(e){if(e==null)throw eH("Can't call method on "+e);return e},to=function(e){return sS(My(e))},pn=function(e){return typeof e=="object"?e!==null:fr(e)},Xr={},lS=function(e){return fr(e)?e:void 0},ps=function(e,t){return arguments.length<2?lS(Xr[e])||lS(Be[e]):Xr[e]&&Xr[e][t]||Be[e]&&Be[e][t]},yc=dt({}.isPrototypeOf),zy=ps("navigator","userAgent")||"",cS=Be.process,fS=Be.Deno,dS=cS&&cS.versions||fS&&fS.version,pS=dS&&dS.v8;pS&&(vh=(hi=pS.split("."))[0]>0&&hi[0]<4?1:+(hi[0]+hi[1])),!vh&&zy&&(!(hi=zy.match(/Edge\/(\d+)/))||hi[1]>=74)&&(hi=zy.match(/Chrome\/(\d+)/))&&(vh=+hi[1]);var yh,bh=vh,ro=!!Object.getOwnPropertySymbols&&!Nr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bh&&bh<41}),Vy=ro&&!Symbol.sham&&typeof Symbol.iterator=="symbol",tH=Be.Object,hs=Vy?function(e){return typeof e=="symbol"}:function(e){var t=ps("Symbol");return fr(t)&&yc(t.prototype,tH(e))},rH=Be.String,Hy=function(e){try{return rH(e)}catch{return"Object"}},nH=Be.TypeError,Uy=function(e){if(fr(e))return e;throw nH(Hy(e)+" is not a function")},wh=function(e,t){var r=e[t];return r==null?void 0:Uy(r)},oH=Be.TypeError,iH=Object.defineProperty,gi=Be["__core-js_shared__"]||(function(e,t){try{iH(Be,e,{value:t,configurable:!0,writable:!0})}catch{Be[e]=t}return t})("__core-js_shared__",{}),La=Ra(function(e){(e.exports=function(t,r){return gi[t]||(gi[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),aH=Be.Object,bc=function(e){return aH(My(e))},uH=dt({}.hasOwnProperty),He=Object.hasOwn||function(e,t){return uH(bc(e),t)},sH=0,lH=Math.random(),cH=dt(1 .toString),Eh=function(e){return"Symbol("+(e===void 0?"":e)+")_"+cH(++sH+lH,36)},wc=La("wks"),Ma=Be.Symbol,hS=Ma&&Ma.for,fH=Vy?Ma:Ma&&Ma.withoutSetter||Eh,gr=function(e){if(!He(wc,e)||!ro&&typeof wc[e]!="string"){var t="Symbol."+e;ro&&He(Ma,e)?wc[e]=Ma[e]:wc[e]=Vy&&hS?hS(t):fH(t)}return wc[e]},dH=Be.TypeError,pH=gr("toPrimitive"),hH=function(e,t){if(!pn(e)||hs(e))return e;var r,n=wh(e,pH);if(n){if(r=Yr(n,e,t),!pn(r)||hs(r))return r;throw dH("Can't convert object to primitive value")}return(function(o,i){var a,u;if(fr(a=o.toString)&&!pn(u=Yr(a,o))||fr(a=o.valueOf)&&!pn(u=Yr(a,o)))return u;throw oH("Can't convert object to primitive value")})(e)},gs=function(e){var t=hH(e,"string");return hs(t)?t:t+""},qy=Be.document,gH=pn(qy)&&pn(qy.createElement),gS=function(e){return gH?qy.createElement(e):{}},vS=!Rr&&!Nr(function(){return Object.defineProperty(gS("div"),"a",{get:function(){return 7}}).a!=7}),mS=Object.getOwnPropertyDescriptor,vH=Rr?mS:function(e,t){if(e=to(e),t=gs(t),vS)try{return mS(e,t)}catch{}if(He(e,t))return Nn(!Yr(Iy.f,e,t),e[t])},Ch={f:vH},mH=/#|\.prototype\./,Ec=function(e,t){var r=bH[yH(e)];return r==EH||r!=wH&&(fr(t)?Nr(t):!!t)},yH=Ec.normalize=function(e){return String(e).replace(mH,".").toLowerCase()},bH=Ec.data={},wH=Ec.NATIVE="N",EH=Ec.POLYFILL="P",CH=Ec,yS=dt(dt.bind),Wy=function(e,t){return Uy(e),t===void 0?e:yS?yS(e,t):function(){return e.apply(t,arguments)}},xH=Be.String,DH=Be.TypeError,$r=function(e){if(pn(e))return e;throw DH(xH(e)+" is not an object")},SH=Be.TypeError,bS=Object.defineProperty,AH=Rr?bS:function(e,t,r){if($r(e),t=gs(t),$r(r),vS)try{return bS(e,t,r)}catch{}if("get"in r||"set"in r)throw SH("Accessors not supported");return"value"in r&&(e[t]=r.value),e},vi={f:AH},Br=Rr?function(e,t,r){return vi.f(e,t,Nn(1,r))}:function(e,t,r){return e[t]=r,e},kH=Ch.f,OH=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return oS(e,this,arguments)};return t.prototype=e.prototype,t},Ro=function(e,t){var r,n,o,i,a,u,s,l,c=e.target,f=e.global,p=e.stat,d=e.proto,v=f?Be:p?Be[c]:(Be[c]||{}).prototype,m=f?Xr:Xr[c]||Br(Xr,c,{})[c],g=m.prototype;for(o in t)r=!CH(f?o:c+(p?".":"#")+o,e.forced)&&v&&He(v,o),a=m[o],r&&(u=e.noTargetGet?(l=kH(v,o))&&l.value:v[o]),i=r&&u?u:t[o],r&&typeof a==typeof i||(s=e.bind&&r?Wy(i,Be):e.wrap&&r?OH(i):d&&fr(i)?dt(i):i,(e.sham||i&&i.sham||a&&a.sham)&&Br(s,"sham",!0),Br(m,o,s),d&&(He(Xr,n=c+"Prototype")||Br(Xr,n,{}),Br(Xr[n],o,i),e.real&&g&&!g[o]&&Br(g,o,i)))},wS=La("keys"),xh=function(e){return wS[e]||(wS[e]=Eh(e))},BH=!Nr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),ES=xh("IE_PROTO"),Gy=Be.Object,FH=Gy.prototype,Dh=BH?Gy.getPrototypeOf:function(e){var t=bc(e);if(He(t,ES))return t[ES];var r=t.constructor;return fr(r)&&t instanceof r?r.prototype:t instanceof Gy?FH:null},_H=Be.String,TH=Be.TypeError,Sh=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=dt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return $r(n),(function(i){if(typeof i=="object"||fr(i))return i;throw TH("Can't set "+_H(i)+" as a prototype")})(o),t?e(n,o):n.__proto__=o,n}})():void 0),PH=Math.ceil,jH=Math.floor,Ky=function(e){var t=+e;return t!=t||t===0?0:(t>0?jH:PH)(t)},NH=Math.max,RH=Math.min,Yy=function(e,t){var r=Ky(e);return r<0?NH(r+t,0):RH(r,t)},IH=Math.min,Cc=function(e){return(t=e.length)>0?IH(Ky(t),9007199254740991):0;var t},LH=function(e){return function(t,r,n){var o,i=to(t),a=Cc(i),u=Yy(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},MH={indexOf:LH(!1)},xc={},zH=MH.indexOf,CS=dt([].push),xS=function(e,t){var r,n=to(e),o=0,i=[];for(r in n)!He(xc,r)&&He(n,r)&&CS(i,r);for(;t.length>o;)He(n,r=t[o++])&&(~zH(i,r)||CS(i,r));return i},Ah=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],VH=Ah.concat("length","prototype"),HH=Object.getOwnPropertyNames||function(e){return xS(e,VH)},Xy={f:HH},kh={f:Object.getOwnPropertySymbols},UH=dt([].concat),qH=ps("Reflect","ownKeys")||function(e){var t=Xy.f($r(e)),r=kh.f;return r?UH(t,r(e)):t},$y=Object.keys||function(e){return xS(e,Ah)},WH=Rr?Object.defineProperties:function(e,t){$r(e);for(var r,n=to(t),o=$y(t),i=o.length,a=0;i>a;)vi.f(e,r=o[a++],n[r]);return e},GH=ps("document","documentElement"),DS=xh("IE_PROTO"),Zy=function(){},SS=function(e){return"<script>"+e+"<\/script>"},AS=function(e){e.write(SS("")),e.close();var t=e.parentWindow.Object;return e=null,t},Oh=function(){try{yh=new ActiveXObject("htmlfile")}catch{}var e,t;Oh=typeof document<"u"?document.domain&&yh?AS(yh):((t=gS("iframe")).style.display="none",GH.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(SS("document.F=Object")),e.close(),e.F):AS(yh);for(var r=Ah.length;r--;)delete Oh.prototype[Ah[r]];return Oh()};xc[DS]=!0;var Io=Object.create||function(e,t){var r;return e!==null?(Zy.prototype=$r(e),r=new Zy,Zy.prototype=null,r[DS]=e):r=Oh(),t===void 0?r:WH(r,t)},Jy=function(e,t,r){var n=gs(t);n in e?vi.f(e,n,Nn(0,r)):e[n]=r},KH=Be.Array,YH=Math.max,kS=function(e,t,r){for(var n=Cc(e),o=Yy(t,n),i=Yy(n,n),a=KH(YH(i-o,0)),u=0;o<i;o++,u++)Jy(a,u,e[o]);return a.length=u,a},XH=dt("".replace),$H=dt("".split),ZH=dt([].join),Qy=String(Error("zxcasd").stack),OS=/\n\s*at [^:]*:[^\n]*/,JH=OS.test(Qy),QH=/@[^\n]*\n/.test(Qy)&&!/zxcasd/.test(Qy),eU=function(e,t){if(typeof e!="string")return e;if(JH)for(;t--;)e=XH(e,OS,"");else if(QH)return ZH(kS($H(e,`
2
+ `),t),`
3
+ `);return e},tU=function(e,t){pn(t)&&"cause"in t&&Br(e,"cause",t.cause)},Lo={},rU=gr("iterator"),nU=Array.prototype,BS={};BS[gr("toStringTag")]="z";var e1=String(BS)==="[object z]",oU=gr("toStringTag"),iU=Be.Object,aU=Ia((function(){return arguments})())=="Arguments",Dc=e1?Ia:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=iU(e),oU))=="string"?r:aU?Ia(t):(n=Ia(t))=="Object"&&fr(t.callee)?"Arguments":n},uU=gr("iterator"),FS=function(e){if(e!=null)return wh(e,uU)||wh(e,"@@iterator")||Lo[Dc(e)]},sU=Be.TypeError,_S=function(e,t,r){var n,o;$r(e);try{if(!(n=wh(e,"return"))){if(t==="throw")throw r;return r}n=Yr(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return $r(n),r},lU=Be.TypeError,Bh=function(e,t){this.stopped=e,this.result=t},TS=Bh.prototype,cU=function(e,t,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=Wy(t,c),m=function(y){return n&&_S(n,"normal",y),new Bh(!0,y)},g=function(y){return f?($r(y),d?v(y[0],y[1],m):v(y[0],y[1])):d?v(y,m):v(y)};if(p)n=e;else{if(!(o=FS(e)))throw lU(Hy(e)+" is not iterable");if((function(y){return y!==void 0&&(Lo.Array===y||nU[rU]===y)})(o)){for(i=0,a=Cc(e);a>i;i++)if((u=g(e[i]))&&yc(TS,u))return u;return new Bh(!1)}n=(function(y,h){var b=arguments.length<2?FS(y):h;if(Uy(b))return $r(Yr(b,y));throw sU(Hy(y)+" is not iterable")})(e,o)}for(s=n.next;!(l=Yr(s,n)).done;){try{u=g(l.value)}catch(y){_S(n,"throw",y)}if(typeof u=="object"&&u&&yc(TS,u))return u}return new Bh(!1)},fU=Be.String,Sc=function(e){if(Dc(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return fU(e)},dU=function(e,t){return e===void 0?arguments.length<2?"":t:Sc(e)},pU=!Nr(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",Nn(1,7)),e.stack!==7)}),hU=gr("toStringTag"),Fh=Be.Error,gU=[].push,Ac=function(e,t){var r,n=arguments.length>2?arguments[2]:void 0,o=yc(t1,this);Sh?r=Sh(new Fh(void 0),o?Dh(this):t1):(r=o?this:Io(t1),Br(r,hU,"Error")),Br(r,"message",dU(t,"")),pU&&Br(r,"stack",eU(r.stack,1)),tU(r,n);var i=[];return cU(e,gU,{that:i}),Br(r,"errors",i),r};Sh?Sh(Ac,Fh):(function(e,t){for(var r=qH(t),n=vi.f,o=Ch.f,i=0;i<r.length;i++){var a=r[i];He(e,a)||n(e,a,o(t,a))}})(Ac,Fh);var t1=Ac.prototype=Io(Fh.prototype,{constructor:Nn(1,Ac),message:Nn(1,""),name:Nn(1,"AggregateError")});Ro({global:!0},{AggregateError:Ac});var vU=dt(Function.toString);fr(gi.inspectSource)||(gi.inspectSource=function(e){return vU(e)});var _h,kc,Th,PS=gi.inspectSource,jS=Be.WeakMap,mU=fr(jS)&&/native code/.test(PS(jS)),r1=Be.TypeError,yU=Be.WeakMap;if(mU||gi.state){var za=gi.state||(gi.state=new yU),bU=dt(za.get),NS=dt(za.has),wU=dt(za.set);_h=function(e,t){if(NS(za,e))throw new r1("Object already initialized");return t.facade=e,wU(za,e,t),t},kc=function(e){return bU(za,e)||{}},Th=function(e){return NS(za,e)}}else{var vs=xh("state");xc[vs]=!0,_h=function(e,t){if(He(e,vs))throw new r1("Object already initialized");return t.facade=e,Br(e,vs,t),t},kc=function(e){return He(e,vs)?e[vs]:{}},Th=function(e){return He(e,vs)}}var mi,RS,IS,ms={set:_h,get:kc,has:Th,enforce:function(e){return Th(e)?kc(e):_h(e,{})},getterFor:function(e){return function(t){var r;if(!pn(t)||(r=kc(t)).type!==e)throw r1("Incompatible receiver, "+e+" required");return r}}},LS=Function.prototype,EU=Rr&&Object.getOwnPropertyDescriptor,MS=He(LS,"name"),CU={PROPER:MS&&(function(){}).name==="something",CONFIGURABLE:MS&&(!Rr||Rr&&EU(LS,"name").configurable)},Ph=function(e,t,r,n){Br(e,t,r)},n1=gr("iterator"),zS=!1;[].keys&&("next"in(IS=[].keys())?(RS=Dh(Dh(IS)))!==Object.prototype&&(mi=RS):zS=!0);var xU=mi==null||Nr(function(){var e={};return mi[n1].call(e)!==e});mi=xU?{}:Io(mi),fr(mi[n1])||Ph(mi,n1,function(){return this});var VS={IteratorPrototype:mi,BUGGY_SAFARI_ITERATORS:zS},DU=e1?{}.toString:function(){return"[object "+Dc(this)+"]"},SU=vi.f,HS=gr("toStringTag"),jh=function(e,t,r,n){if(e){var o=r?e:e.prototype;He(o,HS)||SU(o,HS,{configurable:!0,value:t}),n&&!e1&&Br(o,"toString",DU)}},AU=VS.IteratorPrototype,kU=function(){return this},OU=CU.PROPER,o1=VS.BUGGY_SAFARI_ITERATORS,BU=gr("iterator"),FU=function(){return this},US=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=Io(AU,{next:Nn(1,h)}),jh(g,w,!1,!0),Lo[w]=kU})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!o1&&g in p)return p[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,p=e.prototype,d=p[BU]||p["@@iterator"]||o&&p[o],v=!o1&&d||l(o),m=t=="Array"&&p.entries||d;return m&&(u=Dh(m.call(new e)))!==Object.prototype&&u.next&&(jh(u,c,!0,!0),Lo[c]=FU),OU&&o=="values"&&d&&d.name!=="values"&&(f=!0,v=function(){return Yr(d,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Ro({target:t,proto:!0,forced:o1||f},s)),Lo[t]=v,s},_U=ms.set,TU=ms.getterFor("Array Iterator");US(Array,"Array",function(e,t){_U(this,{type:"Array Iterator",target:to(e),index:0,kind:t})},function(){var e=TU(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),Lo.Arguments=Lo.Array;var PU=dt("".charAt),qS=dt("".charCodeAt),jU=dt("".slice),NU=function(e){return function(t,r){var n,o,i=Sc(My(t)),a=Ky(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=qS(i,a))<55296||n>56319||a+1===u||(o=qS(i,a+1))<56320||o>57343?e?PU(i,a):n:e?jU(i,a,a+2):o-56320+(n-55296<<10)+65536}},RU={charAt:NU(!0)}.charAt,IU=ms.set,LU=ms.getterFor("String Iterator");US(String,"String",function(e){IU(this,{type:"String Iterator",string:Sc(e),index:0})},function(){var e,t=LU(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=RU(r,n),t.index+=e.length,{value:e,done:!1})});var MU=Xr.AggregateError,WS=gr("toStringTag");for(var i1 in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var GS=Be[i1],a1=GS&&GS.prototype;a1&&Dc(a1)!==WS&&Br(a1,WS,i1),Lo[i1]=Lo.Array}var yi,Nh,zU=MU,Rh=function(e){return e&&e.Math==Math&&e},Se=Rh(typeof globalThis=="object"&&globalThis)||Rh(typeof window=="object"&&window)||Rh(typeof self=="object"&&self)||Rh(typeof at=="object"&&at)||(function(){return this})()||Function("return this")(),rr=function(e){try{return!!e()}catch{return!0}},no=!rr(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Oc=Function.prototype.call,dr=Oc.bind?Oc.bind(Oc):function(){return Oc.apply(Oc,arguments)},KS={}.propertyIsEnumerable,YS=Object.getOwnPropertyDescriptor,VU=YS&&!KS.call({1:2},1)?function(e){var t=YS(this,e);return!!t&&t.enumerable}:KS,HU={f:VU},bi=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},XS=Function.prototype,u1=XS.bind,s1=XS.call,UU=u1&&u1.bind(s1),nt=u1?function(e){return e&&UU(s1,e)}:function(e){return e&&function(){return s1.apply(e,arguments)}},qU=nt({}.toString),WU=nt("".slice),Va=function(e){return WU(qU(e),8,-1)},l1=Se.Object,GU=nt("".split),$S=rr(function(){return!l1("z").propertyIsEnumerable(0)})?function(e){return Va(e)=="String"?GU(e,""):l1(e)}:l1,KU=Se.TypeError,Ih=function(e){if(e==null)throw KU("Can't call method on "+e);return e},ys=function(e){return $S(Ih(e))},$t=function(e){return typeof e=="function"},oo=function(e){return typeof e=="object"?e!==null:$t(e)},YU=function(e){return $t(e)?e:void 0},Bc=function(e,t){return arguments.length<2?YU(Se[e]):Se[e]&&Se[e][t]},Lh=nt({}.isPrototypeOf),c1=Bc("navigator","userAgent")||"",ZS=Se.process,JS=Se.Deno,QS=ZS&&ZS.versions||JS&&JS.version,e8=QS&&QS.v8;e8&&(Nh=(yi=e8.split("."))[0]>0&&yi[0]<4?1:+(yi[0]+yi[1])),!Nh&&c1&&(!(yi=c1.match(/Edge\/(\d+)/))||yi[1]>=74)&&(yi=c1.match(/Chrome\/(\d+)/))&&(Nh=+yi[1]);var t8=Nh,f1=!!Object.getOwnPropertySymbols&&!rr(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&t8&&t8<41}),d1=f1&&!Symbol.sham&&typeof Symbol.iterator=="symbol",XU=Se.Object,p1=d1?function(e){return typeof e=="symbol"}:function(e){var t=Bc("Symbol");return $t(t)&&Lh(t.prototype,XU(e))},$U=Se.String,h1=function(e){try{return $U(e)}catch{return"Object"}},ZU=Se.TypeError,g1=function(e){if($t(e))return e;throw ZU(h1(e)+" is not a function")},Fc=function(e,t){var r=e[t];return r==null?void 0:g1(r)},JU=Se.TypeError,QU=Object.defineProperty,v1=function(e,t){try{QU(Se,e,{value:t,configurable:!0,writable:!0})}catch{Se[e]=t}return t},wi=Se["__core-js_shared__"]||v1("__core-js_shared__",{}),m1=Ra(function(e){(e.exports=function(t,r){return wi[t]||(wi[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),eq=Se.Object,y1=function(e){return eq(Ih(e))},tq=nt({}.hasOwnProperty),Ir=Object.hasOwn||function(e,t){return tq(y1(e),t)},rq=0,nq=Math.random(),oq=nt(1 .toString),r8=function(e){return"Symbol("+(e===void 0?"":e)+")_"+oq(++rq+nq,36)},_c=m1("wks"),Ha=Se.Symbol,n8=Ha&&Ha.for,iq=d1?Ha:Ha&&Ha.withoutSetter||r8,Fr=function(e){if(!Ir(_c,e)||!f1&&typeof _c[e]!="string"){var t="Symbol."+e;f1&&Ir(Ha,e)?_c[e]=Ha[e]:_c[e]=d1&&n8?n8(t):iq(t)}return _c[e]},aq=Se.TypeError,uq=Fr("toPrimitive"),sq=function(e,t){if(!oo(e)||p1(e))return e;var r,n=Fc(e,uq);if(n){if(r=dr(n,e,t),!oo(r)||p1(r))return r;throw aq("Can't convert object to primitive value")}return(function(o,i){var a,u;if($t(a=o.toString)&&!oo(u=dr(a,o))||$t(a=o.valueOf)&&!oo(u=dr(a,o)))return u;throw JU("Can't convert object to primitive value")})(e)},b1=function(e){var t=sq(e,"string");return p1(t)?t:t+""},w1=Se.document,lq=oo(w1)&&oo(w1.createElement),E1=function(e){return lq?w1.createElement(e):{}},o8=!no&&!rr(function(){return Object.defineProperty(E1("div"),"a",{get:function(){return 7}}).a!=7}),i8=Object.getOwnPropertyDescriptor,cq=no?i8:function(e,t){if(e=ys(e),t=b1(t),o8)try{return i8(e,t)}catch{}if(Ir(e,t))return bi(!dr(HU.f,e,t),e[t])},C1={f:cq},fq=Se.String,dq=Se.TypeError,Zr=function(e){if(oo(e))return e;throw dq(fq(e)+" is not an object")},pq=Se.TypeError,a8=Object.defineProperty,hq=no?a8:function(e,t,r){if(Zr(e),t=b1(t),Zr(r),o8)try{return a8(e,t,r)}catch{}if("get"in r||"set"in r)throw pq("Accessors not supported");return"value"in r&&(e[t]=r.value),e},bs={f:hq},Lr=no?function(e,t,r){return bs.f(e,t,bi(1,r))}:function(e,t,r){return e[t]=r,e},gq=nt(Function.toString);$t(wi.inspectSource)||(wi.inspectSource=function(e){return gq(e)});var Mh,Tc,zh,x1=wi.inspectSource,u8=Se.WeakMap,vq=$t(u8)&&/native code/.test(x1(u8)),s8=m1("keys"),D1=function(e){return s8[e]||(s8[e]=r8(e))},S1={},A1=Se.TypeError,mq=Se.WeakMap;if(vq||wi.state){var Ua=wi.state||(wi.state=new mq),yq=nt(Ua.get),l8=nt(Ua.has),bq=nt(Ua.set);Mh=function(e,t){if(l8(Ua,e))throw new A1("Object already initialized");return t.facade=e,bq(Ua,e,t),t},Tc=function(e){return yq(Ua,e)||{}},zh=function(e){return l8(Ua,e)}}else{var ws=D1("state");S1[ws]=!0,Mh=function(e,t){if(Ir(e,ws))throw new A1("Object already initialized");return t.facade=e,Lr(e,ws,t),t},Tc=function(e){return Ir(e,ws)?e[ws]:{}},zh=function(e){return Ir(e,ws)}}var qa={set:Mh,get:Tc,has:zh,enforce:function(e){return zh(e)?Tc(e):Mh(e,{})},getterFor:function(e){return function(t){var r;if(!oo(t)||(r=Tc(t)).type!==e)throw A1("Incompatible receiver, "+e+" required");return r}}},c8=Function.prototype,wq=no&&Object.getOwnPropertyDescriptor,f8=Ir(c8,"name"),k1={PROPER:f8&&(function(){}).name==="something",CONFIGURABLE:f8&&(!no||no&&wq(c8,"name").configurable)},Wa=Ra(function(e){var t=k1.CONFIGURABLE,r=qa.get,n=qa.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;$t(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Ir(u,"name")||t&&u.name!==d)&&Lr(u,"name",d),(l=n(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Se?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:Lr(i,a,u)):f?i[a]=u:v1(a,u)})(Function.prototype,"toString",function(){return $t(this)&&r(this).source||x1(this)})}),Eq=Math.ceil,Cq=Math.floor,O1=function(e){var t=+e;return t!=t||t===0?0:(t>0?Cq:Eq)(t)},xq=Math.max,Dq=Math.min,B1=function(e,t){var r=O1(e);return r<0?xq(r+t,0):Dq(r,t)},Sq=Math.min,d8=function(e){return e>0?Sq(O1(e),9007199254740991):0},Vh=function(e){return d8(e.length)},Aq=function(e){return function(t,r,n){var o,i=ys(t),a=Vh(i),u=B1(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},kq={indexOf:Aq(!1)}.indexOf,p8=nt([].push),h8=function(e,t){var r,n=ys(e),o=0,i=[];for(r in n)!Ir(S1,r)&&Ir(n,r)&&p8(i,r);for(;t.length>o;)Ir(n,r=t[o++])&&(~kq(i,r)||p8(i,r));return i},Hh=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Oq=Hh.concat("length","prototype"),Bq=Object.getOwnPropertyNames||function(e){return h8(e,Oq)},Fq={f:Bq},_q={f:Object.getOwnPropertySymbols},Tq=nt([].concat),Pq=Bc("Reflect","ownKeys")||function(e){var t=Fq.f(Zr(e)),r=_q.f;return r?Tq(t,r(e)):t},g8=function(e,t){for(var r=Pq(t),n=bs.f,o=C1.f,i=0;i<r.length;i++){var a=r[i];Ir(e,a)||n(e,a,o(t,a))}},jq=/#|\.prototype\./,Pc=function(e,t){var r=Rq[Nq(e)];return r==Lq||r!=Iq&&($t(t)?rr(t):!!t)},Nq=Pc.normalize=function(e){return String(e).replace(jq,".").toLowerCase()},Rq=Pc.data={},Iq=Pc.NATIVE="N",Lq=Pc.POLYFILL="P",Mq=Pc,zq=C1.f,jc=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?Se:l?Se[u]||v1(u,{}):(Se[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=zq(r,n))&&a.value:r[n],!Mq(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;g8(i,o)}(e.sham||o&&o.sham)&&Lr(i,"sham",!0),Wa(r,n,i,e)}},v8={};v8[Fr("toStringTag")]="z";var Uh,F1=String(v8)==="[object z]",Vq=Fr("toStringTag"),Hq=Se.Object,Uq=Va((function(){return arguments})())=="Arguments",qh=F1?Va:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=Hq(e),Vq))=="string"?r:Uq?Va(t):(n=Va(t))=="Object"&&$t(t.callee)?"Arguments":n},qq=Se.String,Ga=function(e){if(qh(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return qq(e)},Wq=function(){var e=Zr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},_1=Se.RegExp,m8=rr(function(){var e=_1("a","y");return e.lastIndex=2,e.exec("abcd")!=null});m8||rr(function(){return!_1("a","y").sticky});var Gq=m8||rr(function(){var e=_1("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),Kq={BROKEN_CARET:Gq},Yq=Object.keys||function(e){return h8(e,Hh)},Xq=no?Object.defineProperties:function(e,t){Zr(e);for(var r,n=ys(t),o=Yq(t),i=o.length,a=0;i>a;)bs.f(e,r=o[a++],n[r]);return e},$q=Bc("document","documentElement"),y8=D1("IE_PROTO"),T1=function(){},b8=function(e){return"<script>"+e+"<\/script>"},w8=function(e){e.write(b8("")),e.close();var t=e.parentWindow.Object;return e=null,t},Wh=function(){try{Uh=new ActiveXObject("htmlfile")}catch{}var e,t;Wh=typeof document<"u"?document.domain&&Uh?w8(Uh):((t=E1("iframe")).style.display="none",$q.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(b8("document.F=Object")),e.close(),e.F):w8(Uh);for(var r=Hh.length;r--;)delete Wh.prototype[Hh[r]];return Wh()};S1[y8]=!0;var E8,P1,Nc=Object.create||function(e,t){var r;return e!==null?(T1.prototype=Zr(e),r=new T1,T1.prototype=null,r[y8]=e):r=Wh(),t===void 0?r:Xq(r,t)},Zq=Se.RegExp,Jq=rr(function(){var e=Zq(".","s");return!(e.dotAll&&e.exec(`
4
+ `)&&e.flags==="s")}),Qq=Se.RegExp,eW=rr(function(){var e=Qq("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),tW=qa.get,rW=m1("native-string-replace",String.prototype.replace),Gh=RegExp.prototype.exec,j1=Gh,nW=nt("".charAt),oW=nt("".indexOf),iW=nt("".replace),N1=nt("".slice),R1=(P1=/b*/g,dr(Gh,E8=/a/,"a"),dr(Gh,P1,"a"),E8.lastIndex!==0||P1.lastIndex!==0),C8=Kq.BROKEN_CARET,I1=/()??/.exec("")[1]!==void 0;(R1||I1||C8||Jq||eW)&&(j1=function(e){var t,r,n,o,i,a,u,s=this,l=tW(s),c=Ga(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=dr(j1,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=C8&&s.sticky,v=dr(Wq,s),m=s.source,g=0,y=c;if(d&&(v=iW(v,"y",""),oW(v,"g")===-1&&(v+="g"),y=N1(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&nW(c,s.lastIndex-1)!==`
5
+ `)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),I1&&(r=new RegExp("^"+m+"$(?!\\s)",v)),R1&&(n=s.lastIndex),o=dr(Gh,d?r:s,y),d?o?(o.input=N1(o.input,g),o[0]=N1(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:R1&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),I1&&o&&o.length>1&&dr(rW,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=Nc(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Kh=j1;jc({target:"RegExp",proto:!0,forced:/./.exec!==Kh},{exec:Kh});var aW=Fr("species"),x8=RegExp.prototype,uW=nt("".charAt),D8=nt("".charCodeAt),sW=nt("".slice),lW=function(e){return function(t,r){var n,o,i=Ga(Ih(t)),a=O1(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=D8(i,a))<55296||n>56319||a+1===u||(o=D8(i,a+1))<56320||o>57343?e?uW(i,a):n:e?sW(i,a,a+2):o-56320+(n-55296<<10)+65536}},S8={charAt:lW(!0)},cW=S8.charAt,fW=function(e,t,r){return t+(r?cW(e,t).length:1)},dW=Se.TypeError,A8=function(e,t){var r=e.exec;if($t(r)){var n=dr(r,e,t);return n!==null&&Zr(n),n}if(Va(e)==="RegExp")return dr(Kh,e,t);throw dW("RegExp#exec called on incompatible receiver")};(function(e,t,r,n){var o=Fr(e),i=!rr(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!rr(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[aW]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=nt(/./[o]),s=t(o,""[e],function(l,c,f,p,d){var v=nt(l),m=c.exec;return m===Kh||m===x8.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:v(f,c,p)}:{done:!1}});Wa(String.prototype,e,s[0]),Wa(x8,o,s[1])}})("match",function(e,t,r){return[function(n){var o=Ih(this),i=n==null?void 0:Fc(n,e);return i?dr(i,n,o):new RegExp(n)[e](Ga(o))},function(n){var o=Zr(this),i=Ga(n),a=r(t,o,i);if(a.done)return a.value;if(!o.global)return A8(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=A8(o,i))!==null;){var f=Ga(s[0]);l[c]=f,f===""&&(o.lastIndex=fW(i,d8(o.lastIndex),u)),c++}return c===0?null:l}]}),jc({global:!0},{globalThis:Se});var pW=!rr(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),k8=D1("IE_PROTO"),L1=Se.Object,hW=L1.prototype,Rc=pW?L1.getPrototypeOf:function(e){var t=y1(e);if(Ir(t,k8))return t[k8];var r=t.constructor;return $t(r)&&t instanceof r?r.prototype:t instanceof L1?hW:null},gW=Se.String,vW=Se.TypeError,Es=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=nt(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return Zr(n),(function(i){if(typeof i=="object"||$t(i))return i;throw vW("Can't set "+gW(i)+" as a prototype")})(o),t?e(n,o):n.__proto__=o,n}})():void 0),mW=Se.Array,yW=Math.max,bW=nt("".replace),wW=nt("".split),EW=nt([].join),M1=String(Error("zxcasd").stack),O8=/\n\s*at [^:]*:[^\n]*/,CW=O8.test(M1),xW=/@[^\n]*\n/.test(M1)&&!/zxcasd/.test(M1),DW=function(e,t){if(typeof e!="string")return e;if(CW)for(;t--;)e=bW(e,O8,"");else if(xW)return EW((function(r,n,o){for(var i,a,u,s,l=Vh(r),c=B1(n,l),f=B1(l,l),p=mW(yW(f-c,0)),d=0;c<f;c++,d++)i=p,a=d,u=r[c],s=void 0,(s=b1(a))in i?bs.f(i,s,bi(0,u)):i[s]=u;return p.length=d,p})(wW(e,`
6
+ `),t),`
7
+ `);return e},SW=function(e,t){oo(t)&&"cause"in t&&Lr(e,"cause",t.cause)},B8=nt(nt.bind),F8=function(e,t){return g1(e),t===void 0?e:B8?B8(e,t):function(){return e.apply(t,arguments)}},Cs={},AW=Fr("iterator"),kW=Array.prototype,OW=Fr("iterator"),_8=function(e){if(e!=null)return Fc(e,OW)||Fc(e,"@@iterator")||Cs[qh(e)]},BW=Se.TypeError,T8=function(e,t,r){var n,o;Zr(e);try{if(!(n=Fc(e,"return"))){if(t==="throw")throw r;return r}n=dr(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return Zr(n),r},FW=Se.TypeError,Yh=function(e,t){this.stopped=e,this.result=t},P8=Yh.prototype,_W=function(e,t,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=F8(t,c),m=function(y){return n&&T8(n,"normal",y),new Yh(!0,y)},g=function(y){return f?(Zr(y),d?v(y[0],y[1],m):v(y[0],y[1])):d?v(y,m):v(y)};if(p)n=e;else{if(!(o=_8(e)))throw FW(h1(e)+" is not iterable");if((function(y){return y!==void 0&&(Cs.Array===y||kW[AW]===y)})(o)){for(i=0,a=Vh(e);a>i;i++)if((u=g(e[i]))&&Lh(P8,u))return u;return new Yh(!1)}n=(function(y,h){var b=arguments.length<2?_8(y):h;if(g1(b))return Zr(dr(b,y));throw BW(h1(y)+" is not iterable")})(e,o)}for(s=n.next;!(l=dr(s,n)).done;){try{u=g(l.value)}catch(y){T8(n,"throw",y)}if(typeof u=="object"&&u&&Lh(P8,u))return u}return new Yh(!1)},TW=function(e,t){return e===void 0?arguments.length<2?"":t:Ga(e)},PW=!rr(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",bi(1,7)),e.stack!==7)}),jW=Fr("toStringTag"),Xh=Se.Error,NW=[].push,Ic=function(e,t){var r,n=arguments.length>2?arguments[2]:void 0,o=Lh(z1,this);Es?r=Es(new Xh(void 0),o?Rc(this):z1):(r=o?this:Nc(z1),Lr(r,jW,"Error")),Lr(r,"message",TW(t,"")),PW&&Lr(r,"stack",DW(r.stack,1)),SW(r,n);var i=[];return _W(e,NW,{that:i}),Lr(r,"errors",i),r};Es?Es(Ic,Xh):g8(Ic,Xh);var z1=Ic.prototype=Nc(Xh.prototype,{constructor:bi(1,Ic),message:bi(1,""),name:bi(1,"AggregateError")});jc({global:!0},{AggregateError:Ic});var V1=Fr("unscopables"),H1=Array.prototype;H1[V1]==null&&bs.f(H1,V1,{configurable:!0,value:Nc(null)});var Ka,j8,N8,U1=function(e){H1[V1][e]=!0},q1=Fr("iterator"),R8=!1;[].keys&&("next"in(N8=[].keys())?(j8=Rc(Rc(N8)))!==Object.prototype&&(Ka=j8):R8=!0);var RW=Ka==null||rr(function(){var e={};return Ka[q1].call(e)!==e});RW&&(Ka={}),$t(Ka[q1])||Wa(Ka,q1,function(){return this});var W1={IteratorPrototype:Ka,BUGGY_SAFARI_ITERATORS:R8},IW=bs.f,I8=Fr("toStringTag"),L8=function(e,t,r){e&&!Ir(e=r?e:e.prototype,I8)&&IW(e,I8,{configurable:!0,value:t})},LW=W1.IteratorPrototype,MW=function(){return this},zW=k1.PROPER,VW=k1.CONFIGURABLE,M8=W1.IteratorPrototype,G1=W1.BUGGY_SAFARI_ITERATORS,Lc=Fr("iterator"),HW=function(){return this},z8=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=Nc(LW,{next:bi(1,h)}),L8(g,w,!1),Cs[w]=MW})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!G1&&g in p)return p[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,p=e.prototype,d=p[Lc]||p["@@iterator"]||o&&p[o],v=!G1&&d||l(o),m=t=="Array"&&p.entries||d;return m&&(u=Rc(m.call(new e)))!==Object.prototype&&u.next&&(Rc(u)!==M8&&(Es?Es(u,M8):$t(u[Lc])||Wa(u,Lc,HW)),L8(u,c,!0)),zW&&o=="values"&&d&&d.name!=="values"&&(VW?Lr(p,"name","values"):(f=!0,v=function(){return dr(d,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||jc({target:t,proto:!0,forced:G1||f},s)),p[Lc]!==v&&Wa(p,Lc,v,{name:o}),Cs[t]=v,s},UW=qa.set,qW=qa.getterFor("Array Iterator"),Mc=z8(Array,"Array",function(e,t){UW(this,{type:"Array Iterator",target:ys(e),index:0,kind:t})},function(){var e=qW(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");Cs.Arguments=Cs.Array,U1("keys"),U1("values"),U1("entries");var WW=S8.charAt,GW=qa.set,KW=qa.getterFor("String Iterator");z8(String,"String",function(e){GW(this,{type:"String Iterator",string:Ga(e),index:0})},function(){var e,t=KW(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=WW(r,n),t.index+=e.length,{value:e,done:!1})});var K1,$h={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Y1=E1("span").classList,V8=Y1&&Y1.constructor&&Y1.constructor.prototype,H8=V8===Object.prototype?void 0:V8,X1=Fr("iterator"),U8=Fr("toStringTag"),$1=Mc.values,q8=function(e,t){if(e){if(e[X1]!==$1)try{Lr(e,X1,$1)}catch{e[X1]=$1}if(e[U8]||Lr(e,U8,t),$h[t]){for(var r in Mc)if(e[r]!==Mc[r])try{Lr(e,r,Mc[r])}catch{e[r]=Mc[r]}}}};for(var Z1 in $h)q8(Se[Z1]&&Se[Z1].prototype,Z1);q8(H8,"DOMTokenList"),typeof global>"u"?("ActiveXObject"in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
8
+ Sorry, wangEditor V5+ versions do not support IE browser.`),W8(),G8()):global&&(!((K1=global.navigator)===null||K1===void 0)&&K1.userAgent.match("QQBrowser"))&&(W8(),G8());function W8(){typeof globalThis>"u"&&(window.globalThis=window)}function G8(){zU===void 0&&(window.AggregateError=function(e,t){var r=new Error(t);return r.errors=e,r})}var K8,Zh=Array.isArray||function(e){return Ia(e)=="Array"},Y8=function(){},YW=[],X8=ps("Reflect","construct"),J1=/^\s*(?:class|function)\b/,XW=dt(J1.exec),$W=!J1.exec(Y8),zc=function(e){if(!fr(e))return!1;try{return X8(Y8,YW,e),!0}catch{return!1}},ZW=!X8||Nr(function(){var e;return zc(zc.call)||!zc(Object)||!zc(function(){e=!0})||e})?function(e){if(!fr(e))return!1;switch(Dc(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return $W||!!XW(J1,PS(e))}:zc,JW=gr("species"),$8=Be.Array,Z8=function(e,t){return new((function(r){var n;return Zh(r)&&(n=r.constructor,(ZW(n)&&(n===$8||Zh(n.prototype))||pn(n)&&(n=n[JW])===null)&&(n=void 0)),n===void 0?$8:n})(e))(t===0?0:t)},QW=gr("species"),J8=gr("isConcatSpreadable"),Q8=Be.TypeError,eG=bh>=51||!Nr(function(){var e=[];return e[J8]=!1,e.concat()[0]!==e}),tG=(K8="concat",bh>=51||!Nr(function(){var e=[];return(e.constructor={})[QW]=function(){return{foo:1}},e[K8](Boolean).foo!==1})),rG=function(e){if(!pn(e))return!1;var t=e[J8];return t!==void 0?!!t:Zh(e)};Ro({target:"Array",proto:!0,forced:!eG||!tG},{concat:function(e){var t,r,n,o,i,a=bc(this),u=Z8(a,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(rG(i=t===-1?a:arguments[t])){if(s+(o=Cc(i))>9007199254740991)throw Q8("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&Jy(u,s,i[r])}else{if(s>=9007199254740991)throw Q8("Maximum allowed index exceeded");Jy(u,s++,i)}return u.length=s,u}});var eA=Xy.f,tA=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],rA={f:function(e){return tA&&Ia(e)=="Window"?(function(t){try{return eA(t)}catch{return kS(tA)}})(e):eA(to(e))}},nG=dt([].slice),Q1={f:gr},oG=vi.f,Pt=function(e){var t=Xr.Symbol||(Xr.Symbol={});He(t,e)||oG(t,e,{value:Q1.f(e)})},nA=dt([].push),iG=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,v=bc(s),m=sS(v),g=Wy(l,c),y=Cc(m),h=0,b=f||Z8,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(d=g(p=m[h],h,v),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:nA(w,p)}else switch(e){case 4:return!1;case 7:nA(w,p)}return i?-1:n||o?o:w}},Jh={forEach:iG(0)}.forEach,Mr=xh("hidden"),oA=gr("toPrimitive"),aG=ms.set,iA=ms.getterFor("Symbol"),Rn=Object.prototype,Ei=Be.Symbol,Ci=Ei&&Ei.prototype,aA=Be.TypeError,eb=Be.QObject,Vc=ps("JSON","stringify"),uA=Ch.f,xi=vi.f,sA=rA.f,uG=Iy.f,lA=dt([].push),Mo=La("symbols"),Hc=La("op-symbols"),tb=La("string-to-symbol-registry"),rb=La("symbol-to-string-registry"),sG=La("wks"),nb=!eb||!eb.prototype||!eb.prototype.findChild,ob=Rr&&Nr(function(){return Io(xi({},"a",{get:function(){return xi(this,"a",{value:7}).a}})).a!=7})?function(e,t,r){var n=uA(Rn,t);n&&delete Rn[t],xi(e,t,r),n&&e!==Rn&&xi(Rn,t,n)}:xi,ib=function(e,t){var r=Mo[e]=Io(Ci);return aG(r,{type:"Symbol",tag:e,description:t}),Rr||(r.description=t),r},Qh=function(e,t,r){e===Rn&&Qh(Hc,t,r),$r(e);var n=gs(t);return $r(r),He(Mo,n)?(r.enumerable?(He(e,Mr)&&e[Mr][n]&&(e[Mr][n]=!1),r=Io(r,{enumerable:Nn(0,!1)})):(He(e,Mr)||xi(e,Mr,Nn(1,{})),e[Mr][n]=!0),ob(e,n,r)):xi(e,n,r)},cA=function(e,t){$r(e);var r=to(t),n=$y(r).concat(ab(r));return Jh(n,function(o){Rr&&!Yr(fA,r,o)||Qh(e,o,r[o])}),e},fA=function(e){var t=gs(e),r=Yr(uG,this,t);return!(this===Rn&&He(Mo,t)&&!He(Hc,t))&&(!(r||!He(this,t)||!He(Mo,t)||He(this,Mr)&&this[Mr][t])||r)},dA=function(e,t){var r=to(e),n=gs(t);if(r!==Rn||!He(Mo,n)||He(Hc,n)){var o=uA(r,n);return!o||!He(Mo,n)||He(r,Mr)&&r[Mr][n]||(o.enumerable=!0),o}},pA=function(e){var t=sA(to(e)),r=[];return Jh(t,function(n){He(Mo,n)||He(xc,n)||lA(r,n)}),r},ab=function(e){var t=e===Rn,r=sA(t?Hc:to(e)),n=[];return Jh(r,function(o){!He(Mo,o)||t&&!He(Rn,o)||lA(n,Mo[o])}),n};if(ro||(Ci=(Ei=function(){if(yc(Ci,this))throw aA("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?Sc(arguments[0]):void 0,t=Eh(e),r=function(n){this===Rn&&Yr(r,Hc,n),He(this,Mr)&&He(this[Mr],t)&&(this[Mr][t]=!1),ob(this,t,Nn(1,n))};return Rr&&nb&&ob(Rn,t,{configurable:!0,set:r}),ib(t,e)}).prototype,Ph(Ci,"toString",function(){return iA(this).tag}),Ph(Ei,"withoutSetter",function(e){return ib(Eh(e),e)}),Iy.f=fA,vi.f=Qh,Ch.f=dA,Xy.f=rA.f=pA,kh.f=ab,Q1.f=function(e){return ib(gr(e),e)},Rr&&xi(Ci,"description",{configurable:!0,get:function(){return iA(this).description}})),Ro({global:!0,wrap:!0,forced:!ro,sham:!ro},{Symbol:Ei}),Jh($y(sG),function(e){Pt(e)}),Ro({target:"Symbol",stat:!0,forced:!ro},{for:function(e){var t=Sc(e);if(He(tb,t))return tb[t];var r=Ei(t);return tb[t]=r,rb[r]=t,r},keyFor:function(e){if(!hs(e))throw aA(e+" is not a symbol");if(He(rb,e))return rb[e]},useSetter:function(){nb=!0},useSimple:function(){nb=!1}}),Ro({target:"Object",stat:!0,forced:!ro,sham:!Rr},{create:function(e,t){return t===void 0?Io(e):cA(Io(e),t)},defineProperty:Qh,defineProperties:cA,getOwnPropertyDescriptor:dA}),Ro({target:"Object",stat:!0,forced:!ro},{getOwnPropertyNames:pA,getOwnPropertySymbols:ab}),Ro({target:"Object",stat:!0,forced:Nr(function(){kh.f(1)})},{getOwnPropertySymbols:function(e){return kh.f(bc(e))}}),Vc){var lG=!ro||Nr(function(){var e=Ei();return Vc([e])!="[null]"||Vc({a:e})!="{}"||Vc(Object(e))!="{}"});Ro({target:"JSON",stat:!0,forced:lG},{stringify:function(e,t,r){var n=nG(arguments),o=t;if((pn(t)||e!==void 0)&&!hs(e))return Zh(t)||(t=function(i,a){if(fr(o)&&(a=Yr(o,this,i,a)),!hs(a))return a}),n[1]=t,oS(Vc,null,n)}})}if(!Ci[oA]){var cG=Ci.valueOf;Ph(Ci,oA,function(e){return Yr(cG,this)})}jh(Ei,"Symbol"),xc[Mr]=!0,Pt("asyncIterator"),Pt("hasInstance"),Pt("isConcatSpreadable"),Pt("iterator"),Pt("match"),Pt("matchAll"),Pt("replace"),Pt("search"),Pt("species"),Pt("split"),Pt("toPrimitive"),Pt("toStringTag"),Pt("unscopables"),jh(Be.JSON,"JSON",!0);var fG=Xr.Symbol;Pt("asyncDispose"),Pt("dispose"),Pt("matcher"),Pt("metadata"),Pt("observable"),Pt("patternMatch"),Pt("replaceAll");var eg=fG,dG=Q1.f("iterator"),pG=Ra(function(e){function t(r){return typeof eg=="function"&&typeof dG=="symbol"?(e.exports=t=function(n){return typeof n},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(n){return n&&typeof eg=="function"&&n.constructor===eg&&n!==eg.prototype?"symbol":typeof n},e.exports.default=e.exports,e.exports.__esModule=!0),t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),hG=KV(pG),hA=C1.f,gG=rr(function(){hA(1)});if(jc({target:"Object",stat:!0,forced:!no||gG,sham:!no},{getOwnPropertyDescriptor:function(e,t){return hA(ys(e),t)}}),(typeof global>"u"?"undefined":hG(global))==="object"){var vG=Object.getOwnPropertyDescriptor(global,"window");global.window&&!vG.set||(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}function gA(e){return Object.prototype.toString.call(e)==="[object Object]"}function vr(e){var t,r;return gA(e)!==!1&&((t=e.constructor)===void 0||gA(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)}function In(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map(function(o){return"'"+o+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ya(e){return!!e&&!!e[Jr]}function Xa(e){return!!e&&((function(t){if(!t||typeof t!="object")return!1;var r=Object.getPrototypeOf(t);if(r===null)return!0;var n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===CG})(e)||Array.isArray(e)||!!e[SA]||!!e.constructor[SA]||sb(e)||lb(e))}function Uc(e,t,r){r===void 0&&(r=!1),xs(e)===0?(r?Object.keys:Eb)(e).forEach(function(n){r&&typeof n=="symbol"||t(n,e[n],e)}):e.forEach(function(n,o){return t(o,n,e)})}function xs(e){var t=e[Jr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:sb(e)?2:lb(e)?3:0}function ub(e,t){return xs(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function vA(e,t,r){var n=xs(e);n===2?e.set(t,r):n===3?(e.delete(t),e.add(r)):e[t]=r}function sb(e){return wG&&e instanceof Map}function lb(e){return EG&&e instanceof Set}function $a(e){return e.o||e.t}function cb(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=xG(e);delete t[Jr];for(var r=Eb(t),n=0;n<r.length;n++){var o=r[n],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function fb(e,t){return t===void 0&&(t=!1),db(e)||Ya(e)||!Xa(e)||(xs(e)>1&&(e.set=e.add=e.clear=e.delete=mG),Object.freeze(e),t&&Uc(e,function(r,n){return fb(n,!0)},!0)),e}function mG(){In(2)}function db(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function zo(e){var t=DG[e];return t||In(18,e),t}function mA(){return qc}function pb(e,t){t&&(zo("Patches"),e.u=[],e.s=[],e.v=t)}function tg(e){hb(e),e.p.forEach(yG),e.p=null}function hb(e){e===qc&&(qc=e.l)}function yA(e){return qc={p:[],l:qc,h:e,m:!0,_:0}}function yG(e){var t=e[Jr];t.i===0||t.i===1?t.j():t.O=!0}function gb(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.g||zo("ES5").S(t,e,n),n?(r[Jr].P&&(tg(t),In(4)),Xa(e)&&(e=rg(t,e),t.l||ng(t,e)),t.u&&zo("Patches").M(r[Jr],e,t.u,t.s)):e=rg(t,r,[]),tg(t),t.u&&t.v(t.u,t.s),e!==DA?e:void 0}function rg(e,t,r){if(db(t))return t;var n=t[Jr];if(!n)return Uc(t,function(i,a){return bA(e,n,t,i,a,r)},!0),t;if(n.A!==e)return t;if(!n.P)return ng(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=cb(n.k):n.o;Uc(n.i===3?new Set(o):o,function(i,a){return bA(e,n,o,i,a,r)}),ng(e,o,!1),r&&e.u&&zo("Patches").R(n,r,e.u,e.s)}return n.o}function bA(e,t,r,n,o,i){if(Ya(o)){var a=rg(e,o,i&&t&&t.i!==3&&!ub(t.D,n)?i.concat(n):void 0);if(vA(r,n,a),!Ya(a))return;e.m=!1}if(Xa(o)&&!db(o)){if(!e.h.F&&e._<1)return;rg(e,o),t&&t.A.l||ng(e,o)}}function ng(e,t,r){r===void 0&&(r=!1),e.h.F&&e.m&&fb(t,r)}function vb(e,t){var r=e[Jr];return(r?$a(r):e)[t]}function wA(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function mb(e){e.P||(e.P=!0,e.l&&mb(e.l))}function yb(e){e.o||(e.o=cb(e.t))}function bb(e,t,r){var n=sb(t)?zo("MapSet").N(t,r):lb(t)?zo("MapSet").T(t,r):e.g?(function(o,i){var a=Array.isArray(o),u={i:a?1:0,A:i?i.A:mA(),P:!1,I:!1,D:{},l:i,t:o,k:null,o:null,j:null,C:!1},s=u,l=og;a&&(s=[u],l=ig);var c=Proxy.revocable(s,l),f=c.revoke,p=c.proxy;return u.k=p,u.j=f,p})(t,r):zo("ES5").J(t,r);return(r?r.A:mA()).p.push(n),n}function bG(e){return Ya(e)||In(22,e),(function t(r){if(!Xa(r))return r;var n,o=r[Jr],i=xs(r);if(o){if(!o.P&&(o.i<4||!zo("ES5").K(o)))return o.t;o.I=!0,n=EA(r,i),o.I=!1}else n=EA(r,i);return Uc(n,function(a,u){o&&(function(s,l){return xs(s)===2?s.get(l):s[l]})(o.t,a)===u||vA(n,a,t(u))}),i===3?new Set(n):n})(e)}function EA(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return cb(e)}var CA,qc,wb=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",wG=typeof Map<"u",EG=typeof Set<"u",xA=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",DA=wb?Symbol.for("immer-nothing"):((CA={})["immer-nothing"]=!0,CA),SA=wb?Symbol.for("immer-draftable"):"__$immer_draftable",Jr=wb?Symbol.for("immer-state"):"__$immer_state",CG=""+Object.prototype.constructor,Eb=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,xG=Object.getOwnPropertyDescriptors||function(e){var t={};return Eb(e).forEach(function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)}),t},DG={},og={get:function(e,t){if(t===Jr)return e;var r=$a(e);if(!ub(r,t))return(function(o,i,a){var u,s=wA(i,a);return s?"value"in s?s.value:(u=s.get)===null||u===void 0?void 0:u.call(o.k):void 0})(e,r,t);var n=r[t];return e.I||!Xa(n)?n:n===vb(e.t,t)?(yb(e),e.o[t]=bb(e.A.h,n,e)):n},has:function(e,t){return t in $a(e)},ownKeys:function(e){return Reflect.ownKeys($a(e))},set:function(e,t,r){var n=wA($a(e),t);if(n?.set)return n.set.call(e.k,r),!0;if(!e.P){var o=vb($a(e),t),i=o?.[Jr];if(i&&i.t===r)return e.o[t]=r,e.D[t]=!1,!0;if((function(a,u){return a===u?a!==0||1/a==1/u:a!=a&&u!=u})(r,o)&&(r!==void 0||ub(e.t,t)))return!0;yb(e),mb(e)}return e.o[t]===r&&typeof r!="number"&&(r!==void 0||t in e.o)||(e.o[t]=r,e.D[t]=!0,!0)},deleteProperty:function(e,t){return vb(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,yb(e),mb(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=$a(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){In(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){In(12)}},ig={};Uc(og,function(e,t){ig[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),ig.deleteProperty=function(e,t){return og.deleteProperty.call(this,e[0],t)},ig.set=function(e,t,r){return og.set.call(this,e[0],t,r,e[0])};var SG=(function(){function e(r){var n=this;this.g=xA,this.F=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var u=i;i=o;var s=n;return function(d){var v=this;d===void 0&&(d=u);for(var m=arguments.length,g=Array(m>1?m-1:0),y=1;y<m;y++)g[y-1]=arguments[y];return s.produce(d,function(h){var b;return(b=i).call.apply(b,[v,h].concat(g))})}}var l;if(typeof i!="function"&&In(6),a!==void 0&&typeof a!="function"&&In(7),Xa(o)){var c=yA(n),f=bb(n,o,void 0),p=!0;try{l=i(f),p=!1}finally{p?tg(c):hb(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(d){return pb(c,a),gb(d,c)},function(d){throw tg(c),d}):(pb(c,a),gb(l,c))}if(!o||typeof o!="object")return(l=i(o))===DA?void 0:(l===void 0&&(l=o),n.F&&fb(l,!0),l);In(21,o)},this.produceWithPatches=function(o,i){return typeof o=="function"?function(s){for(var l=arguments.length,c=Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];return n.produceWithPatches(s,function(p){return o.apply(void 0,[p].concat(c))})}:[n.produce(o,i,function(s,l){a=s,u=l}),a,u];var a,u},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Xa(r)||In(8),Ya(r)&&(r=bG(r));var n=yA(this),o=bb(this,r,void 0);return o[Jr].C=!0,hb(n),o},t.finishDraft=function(r,n){var o=(r&&r[Jr]).A;return pb(o,n),gb(void 0,o)},t.setAutoFreeze=function(r){this.F=r},t.setUseProxies=function(r){r&&!xA&&In(20),this.g=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=zo("Patches").$;return Ya(r)?a(r,n):this.produce(r,function(u){return a(u,n)})},e})(),Qr=new SG,ag=Qr.produce;Qr.produceWithPatches.bind(Qr),Qr.setAutoFreeze.bind(Qr),Qr.setUseProxies.bind(Qr),Qr.applyPatches.bind(Qr);var AA=Qr.createDraft.bind(Qr),kA=Qr.finishDraft.bind(Qr);function io(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var ug=new WeakMap,Wc=new WeakMap,OA=new WeakMap,BA=new WeakMap,FA=new WeakMap,_A=new WeakMap;function TA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function sg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?TA(Object(r),!0).forEach(function(n){io(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):TA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var AG=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var r of D.pathRefs(e))rK.transform(r,t);for(var n of D.pointRefs(e))nK.transform(n,t);for(var o of D.rangeRefs(e))iK.transform(o,t);var i=new Set,a=[],u=p=>{if(p){var d=p.join(",");i.has(d)||(i.add(d),a.push(p))}},s=ug.get(e)||[],l=kG(t);for(var c of s)u(M.transform(c,t));for(var f of l)u(f);ug.set(e,a),V.transform(e,t),e.operations.push(t),D.normalize(e),t.type==="set_selection"&&(e.marks=null),Wc.get(e)||(Wc.set(e,!0),Promise.resolve().then(()=>{Wc.set(e,!1),e.onChange(),e.operations=[]}))},addMark:(t,r)=>{var{selection:n}=e;if(n)if(X.isExpanded(n))V.setNodes(e,{[t]:r},{match:le.isText,split:!0});else{var o=sg(sg({},D.marks(e)||{}),{},{[t]:r});e.marks=o,Wc.get(e)||e.onChange()}},deleteBackward:t=>{var{selection:r}=e;r&&X.isCollapsed(r)&&V.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:r}=e;r&&X.isCollapsed(r)&&V.delete(e,{unit:t})},deleteFragment:t=>{var{selection:r}=e;r&&X.isExpanded(r)&&V.delete(e,{reverse:t==="backward"})},getFragment:()=>{var{selection:t}=e;return t?oe.fragment(e,t):[]},insertBreak:()=>{V.splitNodes(e,{always:!0})},insertFragment:t=>{V.insertFragment(e,t)},insertNode:t=>{V.insertNodes(e,t)},insertText:t=>{var{selection:r,marks:n}=e;if(r){if(n){var o=sg({text:t},n);V.insertNodes(e,o)}else V.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[r,n]=t;if(!le.isText(r))if(ge.isElement(r)&&r.children.length===0)V.insertNodes(e,{text:""},{at:n.concat(0),voids:!0});else for(var o=!D.isEditor(r)&&ge.isElement(r)&&(e.isInline(r)||r.children.length===0||le.isText(r.children[0])||e.isInline(r.children[0])),i=0,a=0;a<r.children.length;a++,i++){var u=oe.get(e,n);if(!le.isText(u)){var s=r.children[a],l=u.children[i-1],c=a===r.children.length-1;(le.isText(s)||ge.isElement(s)&&e.isInline(s))!==o?(V.removeNodes(e,{at:n.concat(i),voids:!0}),i--):ge.isElement(s)?e.isInline(s)&&(l!=null&&le.isText(l)?c&&(V.insertNodes(e,{text:""},{at:n.concat(i+1),voids:!0}),i++):(V.insertNodes(e,{text:""},{at:n.concat(i),voids:!0}),i++)):l!=null&&le.isText(l)&&(le.equals(s,l,{loose:!0})?(V.mergeNodes(e,{at:n.concat(i),voids:!0}),i--):l.text===""?(V.removeNodes(e,{at:n.concat(i-1),voids:!0}),i--):s.text===""&&(V.removeNodes(e,{at:n.concat(i),voids:!0}),i--))}}},removeMark:t=>{var{selection:r}=e;if(r)if(X.isExpanded(r))V.unsetNodes(e,t,{match:le.isText,split:!0});else{var n=sg({},D.marks(e)||{});delete n[t],e.marks=n,Wc.get(e)||e.onChange()}}};return e},kG=e=>{switch(e.type){case"insert_text":case"remove_text":case"set_node":var{path:t}=e;return M.levels(t);case"insert_node":var{node:r,path:n}=e,o=M.levels(n),i=le.isText(r)?[]:Array.from(oe.nodes(r),w=>{var[,x]=w;return n.concat(x)});return[...o,...i];case"merge_node":var{path:a}=e;return[...M.ancestors(a),M.previous(a)];case"move_node":var{path:u,newPath:s}=e;if(M.equals(u,s))return[];var l=[],c=[];for(var f of M.ancestors(u)){var p=M.transform(f,e);l.push(p)}for(var d of M.ancestors(s)){var v=M.transform(d,e);c.push(v)}var m=c[c.length-1],g=s[s.length-1],y=m.concat(g);return[...l,...c,y];case"remove_node":var{path:h}=e;return[...M.ancestors(h)];case"split_node":var{path:b}=e;return[...M.levels(b),M.next(b)];default:return[]}};function Vo(e,t){if(e==null)return{};var r,n,o=(function(a,u){if(a==null)return{};var s,l,c={},f=Object.keys(a);for(l=0;l<f.length;l++)s=f[l],u.indexOf(s)>=0||(c[s]=a[s]);return c})(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ke,Cb=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=!t,n=t?TG(e):e,o=ke.None,i=ke.None,a=0,u=null;for(var s of n){var l=s.codePointAt(0);if(!l)break;var c=qG(s,l);if([o,i]=r?[i,c]:[c,o],Ds(o,ke.ZWJ)&&Ds(i,ke.ExtPict)&&!YG(r?e.substring(0,a):e.substring(0,e.length-a))||Ds(o,ke.RI)&&Ds(i,ke.RI)&&!(u=u!==null?!u:!!r||$G(e.substring(0,e.length-a)))||o!==ke.None&&i!==ke.None&&GG(o,i))break;a+=s.length}return a||1},OG=/\s/,BG=/[\u0021-\u0023\u0025-\u002A\u002C-\u002F\u003A\u003B\u003F\u0040\u005B-\u005D\u005F\u007B\u007D\u00A1\u00A7\u00AB\u00B6\u00B7\u00BB\u00BF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E3B\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]/,FG=/['\u2018\u2019]/,xb=(e,t,r)=>{if(r){var n=e.length-t;return[e.slice(n,e.length),e.slice(0,n)]}return[e.slice(0,t),e.slice(t)]},_G=function e(t,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(OG.test(t))return!1;if(FG.test(t)){var o=Cb(r,n),[i,a]=xb(r,o,n);if(e(i,a,n))return!0}return!BG.test(t)},TG=function*(e){for(var t=e.length-1,r=0;r<e.length;r++){var n=e.charAt(t-r);if(jG(n.charCodeAt(0))){var o=e.charAt(t-r-1);if(PG(o.charCodeAt(0))){yield o+n,r++;continue}}yield n}},PG=e=>e>=55296&&e<=56319,jG=e=>e>=56320&&e<=57343;(function(e){e[e.None=0]="None",e[e.Extend=1]="Extend",e[e.ZWJ=2]="ZWJ",e[e.RI=4]="RI",e[e.Prepend=8]="Prepend",e[e.SpacingMark=16]="SpacingMark",e[e.L=32]="L",e[e.V=64]="V",e[e.T=128]="T",e[e.LV=256]="LV",e[e.LVT=512]="LVT",e[e.ExtPict=1024]="ExtPict",e[e.Any=2048]="Any"})(ke||(ke={}));var NG=/^(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])$/,RG=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,IG=/^(?:[\u0903\u093B\u093E-\u0940\u0949-\u094C\u094E\u094F\u0982\u0983\u09BF\u09C0\u09C7\u09C8\u09CB\u09CC\u0A03\u0A3E-\u0A40\u0A83\u0ABE-\u0AC0\u0AC9\u0ACB\u0ACC\u0B02\u0B03\u0B40\u0B47\u0B48\u0B4B\u0B4C\u0BBF\u0BC1\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCC\u0C01-\u0C03\u0C41-\u0C44\u0C82\u0C83\u0CBE\u0CC0\u0CC1\u0CC3\u0CC4\u0CC7\u0CC8\u0CCA\u0CCB\u0D02\u0D03\u0D3F\u0D40\u0D46-\u0D48\u0D4A-\u0D4C\u0D82\u0D83\u0DD0\u0DD1\u0DD8-\u0DDE\u0DF2\u0DF3\u0E33\u0EB3\u0F3E\u0F3F\u0F7F\u1031\u103B\u103C\u1056\u1057\u1084\u1715\u1734\u17B6\u17BE-\u17C5\u17C7\u17C8\u1923-\u1926\u1929-\u192B\u1930\u1931\u1933-\u1938\u1A19\u1A1A\u1A55\u1A57\u1A6D-\u1A72\u1B04\u1B3B\u1B3D-\u1B41\u1B43\u1B44\u1B82\u1BA1\u1BA6\u1BA7\u1BAA\u1BE7\u1BEA-\u1BEC\u1BEE\u1BF2\u1BF3\u1C24-\u1C2B\u1C34\u1C35\u1CE1\u1CF7\uA823\uA824\uA827\uA880\uA881\uA8B4-\uA8C3\uA952\uA953\uA983\uA9B4\uA9B5\uA9BA\uA9BB\uA9BE-\uA9C0\uAA2F\uAA30\uAA33\uAA34\uAA4D\uAAEB\uAAEE\uAAEF\uAAF5\uABE3\uABE4\uABE6\uABE7\uABE9\uABEA\uABEC]|\uD804[\uDC00\uDC02\uDC82\uDCB0-\uDCB2\uDCB7\uDCB8\uDD2C\uDD45\uDD46\uDD82\uDDB3-\uDDB5\uDDBF\uDDC0\uDDCE\uDE2C-\uDE2E\uDE32\uDE33\uDE35\uDEE0-\uDEE2\uDF02\uDF03\uDF3F\uDF41-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF62\uDF63]|\uD805[\uDC35-\uDC37\uDC40\uDC41\uDC45\uDCB1\uDCB2\uDCB9\uDCBB\uDCBC\uDCBE\uDCC1\uDDB0\uDDB1\uDDB8-\uDDBB\uDDBE\uDE30-\uDE32\uDE3B\uDE3C\uDE3E\uDEAC\uDEAE\uDEAF\uDEB6\uDF26]|\uD806[\uDC2C-\uDC2E\uDC38\uDD31-\uDD35\uDD37\uDD38\uDD3D\uDD40\uDD42\uDDD1-\uDDD3\uDDDC-\uDDDF\uDDE4\uDE39\uDE57\uDE58\uDE97]|\uD807[\uDC2F\uDC3E\uDCA9\uDCB1\uDCB4\uDD8A-\uDD8E\uDD93\uDD94\uDD96\uDEF5\uDEF6]|\uD81B[\uDF51-\uDF87\uDFF0\uDFF1]|\uD834[\uDD66\uDD6D])$/,LG=/^[\u1100-\u115F\uA960-\uA97C]$/,MG=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,zG=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,VG=/^[\uAC00\uAC1C\uAC38\uAC54\uAC70\uAC8C\uACA8\uACC4\uACE0\uACFC\uAD18\uAD34\uAD50\uAD6C\uAD88\uADA4\uADC0\uADDC\uADF8\uAE14\uAE30\uAE4C\uAE68\uAE84\uAEA0\uAEBC\uAED8\uAEF4\uAF10\uAF2C\uAF48\uAF64\uAF80\uAF9C\uAFB8\uAFD4\uAFF0\uB00C\uB028\uB044\uB060\uB07C\uB098\uB0B4\uB0D0\uB0EC\uB108\uB124\uB140\uB15C\uB178\uB194\uB1B0\uB1CC\uB1E8\uB204\uB220\uB23C\uB258\uB274\uB290\uB2AC\uB2C8\uB2E4\uB300\uB31C\uB338\uB354\uB370\uB38C\uB3A8\uB3C4\uB3E0\uB3FC\uB418\uB434\uB450\uB46C\uB488\uB4A4\uB4C0\uB4DC\uB4F8\uB514\uB530\uB54C\uB568\uB584\uB5A0\uB5BC\uB5D8\uB5F4\uB610\uB62C\uB648\uB664\uB680\uB69C\uB6B8\uB6D4\uB6F0\uB70C\uB728\uB744\uB760\uB77C\uB798\uB7B4\uB7D0\uB7EC\uB808\uB824\uB840\uB85C\uB878\uB894\uB8B0\uB8CC\uB8E8\uB904\uB920\uB93C\uB958\uB974\uB990\uB9AC\uB9C8\uB9E4\uBA00\uBA1C\uBA38\uBA54\uBA70\uBA8C\uBAA8\uBAC4\uBAE0\uBAFC\uBB18\uBB34\uBB50\uBB6C\uBB88\uBBA4\uBBC0\uBBDC\uBBF8\uBC14\uBC30\uBC4C\uBC68\uBC84\uBCA0\uBCBC\uBCD8\uBCF4\uBD10\uBD2C\uBD48\uBD64\uBD80\uBD9C\uBDB8\uBDD4\uBDF0\uBE0C\uBE28\uBE44\uBE60\uBE7C\uBE98\uBEB4\uBED0\uBEEC\uBF08\uBF24\uBF40\uBF5C\uBF78\uBF94\uBFB0\uBFCC\uBFE8\uC004\uC020\uC03C\uC058\uC074\uC090\uC0AC\uC0C8\uC0E4\uC100\uC11C\uC138\uC154\uC170\uC18C\uC1A8\uC1C4\uC1E0\uC1FC\uC218\uC234\uC250\uC26C\uC288\uC2A4\uC2C0\uC2DC\uC2F8\uC314\uC330\uC34C\uC368\uC384\uC3A0\uC3BC\uC3D8\uC3F4\uC410\uC42C\uC448\uC464\uC480\uC49C\uC4B8\uC4D4\uC4F0\uC50C\uC528\uC544\uC560\uC57C\uC598\uC5B4\uC5D0\uC5EC\uC608\uC624\uC640\uC65C\uC678\uC694\uC6B0\uC6CC\uC6E8\uC704\uC720\uC73C\uC758\uC774\uC790\uC7AC\uC7C8\uC7E4\uC800\uC81C\uC838\uC854\uC870\uC88C\uC8A8\uC8C4\uC8E0\uC8FC\uC918\uC934\uC950\uC96C\uC988\uC9A4\uC9C0\uC9DC\uC9F8\uCA14\uCA30\uCA4C\uCA68\uCA84\uCAA0\uCABC\uCAD8\uCAF4\uCB10\uCB2C\uCB48\uCB64\uCB80\uCB9C\uCBB8\uCBD4\uCBF0\uCC0C\uCC28\uCC44\uCC60\uCC7C\uCC98\uCCB4\uCCD0\uCCEC\uCD08\uCD24\uCD40\uCD5C\uCD78\uCD94\uCDB0\uCDCC\uCDE8\uCE04\uCE20\uCE3C\uCE58\uCE74\uCE90\uCEAC\uCEC8\uCEE4\uCF00\uCF1C\uCF38\uCF54\uCF70\uCF8C\uCFA8\uCFC4\uCFE0\uCFFC\uD018\uD034\uD050\uD06C\uD088\uD0A4\uD0C0\uD0DC\uD0F8\uD114\uD130\uD14C\uD168\uD184\uD1A0\uD1BC\uD1D8\uD1F4\uD210\uD22C\uD248\uD264\uD280\uD29C\uD2B8\uD2D4\uD2F0\uD30C\uD328\uD344\uD360\uD37C\uD398\uD3B4\uD3D0\uD3EC\uD408\uD424\uD440\uD45C\uD478\uD494\uD4B0\uD4CC\uD4E8\uD504\uD520\uD53C\uD558\uD574\uD590\uD5AC\uD5C8\uD5E4\uD600\uD61C\uD638\uD654\uD670\uD68C\uD6A8\uD6C4\uD6E0\uD6FC\uD718\uD734\uD750\uD76C\uD788]$/,HG=/^[\uAC01-\uAC1B\uAC1D-\uAC37\uAC39-\uAC53\uAC55-\uAC6F\uAC71-\uAC8B\uAC8D-\uACA7\uACA9-\uACC3\uACC5-\uACDF\uACE1-\uACFB\uACFD-\uAD17\uAD19-\uAD33\uAD35-\uAD4F\uAD51-\uAD6B\uAD6D-\uAD87\uAD89-\uADA3\uADA5-\uADBF\uADC1-\uADDB\uADDD-\uADF7\uADF9-\uAE13\uAE15-\uAE2F\uAE31-\uAE4B\uAE4D-\uAE67\uAE69-\uAE83\uAE85-\uAE9F\uAEA1-\uAEBB\uAEBD-\uAED7\uAED9-\uAEF3\uAEF5-\uAF0F\uAF11-\uAF2B\uAF2D-\uAF47\uAF49-\uAF63\uAF65-\uAF7F\uAF81-\uAF9B\uAF9D-\uAFB7\uAFB9-\uAFD3\uAFD5-\uAFEF\uAFF1-\uB00B\uB00D-\uB027\uB029-\uB043\uB045-\uB05F\uB061-\uB07B\uB07D-\uB097\uB099-\uB0B3\uB0B5-\uB0CF\uB0D1-\uB0EB\uB0ED-\uB107\uB109-\uB123\uB125-\uB13F\uB141-\uB15B\uB15D-\uB177\uB179-\uB193\uB195-\uB1AF\uB1B1-\uB1CB\uB1CD-\uB1E7\uB1E9-\uB203\uB205-\uB21F\uB221-\uB23B\uB23D-\uB257\uB259-\uB273\uB275-\uB28F\uB291-\uB2AB\uB2AD-\uB2C7\uB2C9-\uB2E3\uB2E5-\uB2FF\uB301-\uB31B\uB31D-\uB337\uB339-\uB353\uB355-\uB36F\uB371-\uB38B\uB38D-\uB3A7\uB3A9-\uB3C3\uB3C5-\uB3DF\uB3E1-\uB3FB\uB3FD-\uB417\uB419-\uB433\uB435-\uB44F\uB451-\uB46B\uB46D-\uB487\uB489-\uB4A3\uB4A5-\uB4BF\uB4C1-\uB4DB\uB4DD-\uB4F7\uB4F9-\uB513\uB515-\uB52F\uB531-\uB54B\uB54D-\uB567\uB569-\uB583\uB585-\uB59F\uB5A1-\uB5BB\uB5BD-\uB5D7\uB5D9-\uB5F3\uB5F5-\uB60F\uB611-\uB62B\uB62D-\uB647\uB649-\uB663\uB665-\uB67F\uB681-\uB69B\uB69D-\uB6B7\uB6B9-\uB6D3\uB6D5-\uB6EF\uB6F1-\uB70B\uB70D-\uB727\uB729-\uB743\uB745-\uB75F\uB761-\uB77B\uB77D-\uB797\uB799-\uB7B3\uB7B5-\uB7CF\uB7D1-\uB7EB\uB7ED-\uB807\uB809-\uB823\uB825-\uB83F\uB841-\uB85B\uB85D-\uB877\uB879-\uB893\uB895-\uB8AF\uB8B1-\uB8CB\uB8CD-\uB8E7\uB8E9-\uB903\uB905-\uB91F\uB921-\uB93B\uB93D-\uB957\uB959-\uB973\uB975-\uB98F\uB991-\uB9AB\uB9AD-\uB9C7\uB9C9-\uB9E3\uB9E5-\uB9FF\uBA01-\uBA1B\uBA1D-\uBA37\uBA39-\uBA53\uBA55-\uBA6F\uBA71-\uBA8B\uBA8D-\uBAA7\uBAA9-\uBAC3\uBAC5-\uBADF\uBAE1-\uBAFB\uBAFD-\uBB17\uBB19-\uBB33\uBB35-\uBB4F\uBB51-\uBB6B\uBB6D-\uBB87\uBB89-\uBBA3\uBBA5-\uBBBF\uBBC1-\uBBDB\uBBDD-\uBBF7\uBBF9-\uBC13\uBC15-\uBC2F\uBC31-\uBC4B\uBC4D-\uBC67\uBC69-\uBC83\uBC85-\uBC9F\uBCA1-\uBCBB\uBCBD-\uBCD7\uBCD9-\uBCF3\uBCF5-\uBD0F\uBD11-\uBD2B\uBD2D-\uBD47\uBD49-\uBD63\uBD65-\uBD7F\uBD81-\uBD9B\uBD9D-\uBDB7\uBDB9-\uBDD3\uBDD5-\uBDEF\uBDF1-\uBE0B\uBE0D-\uBE27\uBE29-\uBE43\uBE45-\uBE5F\uBE61-\uBE7B\uBE7D-\uBE97\uBE99-\uBEB3\uBEB5-\uBECF\uBED1-\uBEEB\uBEED-\uBF07\uBF09-\uBF23\uBF25-\uBF3F\uBF41-\uBF5B\uBF5D-\uBF77\uBF79-\uBF93\uBF95-\uBFAF\uBFB1-\uBFCB\uBFCD-\uBFE7\uBFE9-\uC003\uC005-\uC01F\uC021-\uC03B\uC03D-\uC057\uC059-\uC073\uC075-\uC08F\uC091-\uC0AB\uC0AD-\uC0C7\uC0C9-\uC0E3\uC0E5-\uC0FF\uC101-\uC11B\uC11D-\uC137\uC139-\uC153\uC155-\uC16F\uC171-\uC18B\uC18D-\uC1A7\uC1A9-\uC1C3\uC1C5-\uC1DF\uC1E1-\uC1FB\uC1FD-\uC217\uC219-\uC233\uC235-\uC24F\uC251-\uC26B\uC26D-\uC287\uC289-\uC2A3\uC2A5-\uC2BF\uC2C1-\uC2DB\uC2DD-\uC2F7\uC2F9-\uC313\uC315-\uC32F\uC331-\uC34B\uC34D-\uC367\uC369-\uC383\uC385-\uC39F\uC3A1-\uC3BB\uC3BD-\uC3D7\uC3D9-\uC3F3\uC3F5-\uC40F\uC411-\uC42B\uC42D-\uC447\uC449-\uC463\uC465-\uC47F\uC481-\uC49B\uC49D-\uC4B7\uC4B9-\uC4D3\uC4D5-\uC4EF\uC4F1-\uC50B\uC50D-\uC527\uC529-\uC543\uC545-\uC55F\uC561-\uC57B\uC57D-\uC597\uC599-\uC5B3\uC5B5-\uC5CF\uC5D1-\uC5EB\uC5ED-\uC607\uC609-\uC623\uC625-\uC63F\uC641-\uC65B\uC65D-\uC677\uC679-\uC693\uC695-\uC6AF\uC6B1-\uC6CB\uC6CD-\uC6E7\uC6E9-\uC703\uC705-\uC71F\uC721-\uC73B\uC73D-\uC757\uC759-\uC773\uC775-\uC78F\uC791-\uC7AB\uC7AD-\uC7C7\uC7C9-\uC7E3\uC7E5-\uC7FF\uC801-\uC81B\uC81D-\uC837\uC839-\uC853\uC855-\uC86F\uC871-\uC88B\uC88D-\uC8A7\uC8A9-\uC8C3\uC8C5-\uC8DF\uC8E1-\uC8FB\uC8FD-\uC917\uC919-\uC933\uC935-\uC94F\uC951-\uC96B\uC96D-\uC987\uC989-\uC9A3\uC9A5-\uC9BF\uC9C1-\uC9DB\uC9DD-\uC9F7\uC9F9-\uCA13\uCA15-\uCA2F\uCA31-\uCA4B\uCA4D-\uCA67\uCA69-\uCA83\uCA85-\uCA9F\uCAA1-\uCABB\uCABD-\uCAD7\uCAD9-\uCAF3\uCAF5-\uCB0F\uCB11-\uCB2B\uCB2D-\uCB47\uCB49-\uCB63\uCB65-\uCB7F\uCB81-\uCB9B\uCB9D-\uCBB7\uCBB9-\uCBD3\uCBD5-\uCBEF\uCBF1-\uCC0B\uCC0D-\uCC27\uCC29-\uCC43\uCC45-\uCC5F\uCC61-\uCC7B\uCC7D-\uCC97\uCC99-\uCCB3\uCCB5-\uCCCF\uCCD1-\uCCEB\uCCED-\uCD07\uCD09-\uCD23\uCD25-\uCD3F\uCD41-\uCD5B\uCD5D-\uCD77\uCD79-\uCD93\uCD95-\uCDAF\uCDB1-\uCDCB\uCDCD-\uCDE7\uCDE9-\uCE03\uCE05-\uCE1F\uCE21-\uCE3B\uCE3D-\uCE57\uCE59-\uCE73\uCE75-\uCE8F\uCE91-\uCEAB\uCEAD-\uCEC7\uCEC9-\uCEE3\uCEE5-\uCEFF\uCF01-\uCF1B\uCF1D-\uCF37\uCF39-\uCF53\uCF55-\uCF6F\uCF71-\uCF8B\uCF8D-\uCFA7\uCFA9-\uCFC3\uCFC5-\uCFDF\uCFE1-\uCFFB\uCFFD-\uD017\uD019-\uD033\uD035-\uD04F\uD051-\uD06B\uD06D-\uD087\uD089-\uD0A3\uD0A5-\uD0BF\uD0C1-\uD0DB\uD0DD-\uD0F7\uD0F9-\uD113\uD115-\uD12F\uD131-\uD14B\uD14D-\uD167\uD169-\uD183\uD185-\uD19F\uD1A1-\uD1BB\uD1BD-\uD1D7\uD1D9-\uD1F3\uD1F5-\uD20F\uD211-\uD22B\uD22D-\uD247\uD249-\uD263\uD265-\uD27F\uD281-\uD29B\uD29D-\uD2B7\uD2B9-\uD2D3\uD2D5-\uD2EF\uD2F1-\uD30B\uD30D-\uD327\uD329-\uD343\uD345-\uD35F\uD361-\uD37B\uD37D-\uD397\uD399-\uD3B3\uD3B5-\uD3CF\uD3D1-\uD3EB\uD3ED-\uD407\uD409-\uD423\uD425-\uD43F\uD441-\uD45B\uD45D-\uD477\uD479-\uD493\uD495-\uD4AF\uD4B1-\uD4CB\uD4CD-\uD4E7\uD4E9-\uD503\uD505-\uD51F\uD521-\uD53B\uD53D-\uD557\uD559-\uD573\uD575-\uD58F\uD591-\uD5AB\uD5AD-\uD5C7\uD5C9-\uD5E3\uD5E5-\uD5FF\uD601-\uD61B\uD61D-\uD637\uD639-\uD653\uD655-\uD66F\uD671-\uD68B\uD68D-\uD6A7\uD6A9-\uD6C3\uD6C5-\uD6DF\uD6E1-\uD6FB\uD6FD-\uD717\uD719-\uD733\uD735-\uD74F\uD751-\uD76B\uD76D-\uD787\uD789-\uD7A3]$/,UG=/^(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])$/,qG=(e,t)=>{var r=ke.Any;return e.search(NG)!==-1&&(r|=ke.Extend),t===8205&&(r|=ke.ZWJ),t>=127462&&t<=127487&&(r|=ke.RI),e.search(RG)!==-1&&(r|=ke.Prepend),e.search(IG)!==-1&&(r|=ke.SpacingMark),e.search(LG)!==-1&&(r|=ke.L),e.search(MG)!==-1&&(r|=ke.V),e.search(zG)!==-1&&(r|=ke.T),e.search(VG)!==-1&&(r|=ke.LV),e.search(HG)!==-1&&(r|=ke.LVT),e.search(UG)!==-1&&(r|=ke.ExtPict),r};function Ds(e,t){return(e&t)!=0}var WG=[[ke.L,ke.L|ke.V|ke.LV|ke.LVT],[ke.LV|ke.V,ke.V|ke.T],[ke.LVT|ke.T,ke.T],[ke.Any,ke.Extend|ke.ZWJ],[ke.Any,ke.SpacingMark],[ke.Prepend,ke.Any],[ke.ZWJ,ke.ExtPict],[ke.RI,ke.RI]];function GG(e,t){return WG.findIndex(r=>Ds(e,r[0])&&Ds(t,r[1]))===-1}var KG=/(?:[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u2388\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2605\u2607-\u2612\u2614-\u2685\u2690-\u2705\u2708-\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763-\u2767\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC00-\uDCFF\uDD0D-\uDD0F\uDD2F\uDD6C-\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDAD-\uDDE5\uDE01-\uDE0F\uDE1A\uDE2F\uDE32-\uDE3A\uDE3C-\uDE3F\uDE49-\uDFFA]|\uD83D[\uDC00-\uDD3D\uDD46-\uDE4F\uDE80-\uDEFF\uDF74-\uDF7F\uDFD5-\uDFFF]|\uD83E[\uDC0C-\uDC0F\uDC48-\uDC4F\uDC5A-\uDC5F\uDC88-\uDC8F\uDCAE-\uDCFF\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDEFF]|\uD83F[\uDC00-\uDFFD])(?:[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0902\u093A\u093C\u0941-\u0948\u094D\u0951-\u0957\u0962\u0963\u0981\u09BC\u09BE\u09C1-\u09C4\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01\u0A02\u0A3C\u0A41\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81\u0A82\u0ABC\u0AC1-\u0AC5\u0AC7\u0AC8\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01\u0B3C\u0B3E\u0B3F\u0B41-\u0B44\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B82\u0BBE\u0BC0\u0BCD\u0BD7\u0C00\u0C04\u0C3E-\u0C40\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81\u0CBC\u0CBF\u0CC2\u0CC6\u0CCC\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00\u0D01\u0D3B\u0D3C\u0D3E\u0D41-\u0D44\u0D4D\u0D57\u0D62\u0D63\u0D81\u0DCA\u0DCF\u0DD2-\u0DD4\u0DD6\u0DDF\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F71-\u0F7E\u0F80-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102D-\u1030\u1032-\u1037\u1039\u103A\u103D\u103E\u1058\u1059\u105E-\u1060\u1071-\u1074\u1082\u1085\u1086\u108D\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4\u17B5\u17B7-\u17BD\u17C6\u17C9-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193B\u1A17\u1A18\u1A1B\u1A56\u1A58-\u1A5E\u1A60\u1A62\u1A65-\u1A6C\u1A73-\u1A7C\u1A7F\u1AB0-\u1AC0\u1B00-\u1B03\u1B34-\u1B3A\u1B3C\u1B42\u1B6B-\u1B73\u1B80\u1B81\u1BA2-\u1BA5\u1BA8\u1BA9\u1BAB-\u1BAD\u1BE6\u1BE8\u1BE9\u1BED\u1BEF-\u1BF1\u1C2C-\u1C33\u1C36\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE0\u1CE2-\u1CE8\u1CED\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA825\uA826\uA82C\uA8C4\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA951\uA980-\uA982\uA9B3\uA9B6-\uA9B9\uA9BC\uA9BD\uA9E5\uAA29-\uAA2E\uAA31\uAA32\uAA35\uAA36\uAA43\uAA4C\uAA7C\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEC\uAAED\uAAF6\uABE5\uABE8\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFF9E\uFF9F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDEAB\uDEAC\uDF46-\uDF50]|\uD804[\uDC01\uDC38-\uDC46\uDC7F-\uDC81\uDCB3-\uDCB6\uDCB9\uDCBA\uDD00-\uDD02\uDD27-\uDD2B\uDD2D-\uDD34\uDD73\uDD80\uDD81\uDDB6-\uDDBE\uDDC9-\uDDCC\uDDCF\uDE2F-\uDE31\uDE34\uDE36\uDE37\uDE3E\uDEDF\uDEE3-\uDEEA\uDF00\uDF01\uDF3B\uDF3C\uDF3E\uDF40\uDF57\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC38-\uDC3F\uDC42-\uDC44\uDC46\uDC5E\uDCB0\uDCB3-\uDCB8\uDCBA\uDCBD\uDCBF\uDCC0\uDCC2\uDCC3\uDDAF\uDDB2-\uDDB5\uDDBC\uDDBD\uDDBF\uDDC0\uDDDC\uDDDD\uDE33-\uDE3A\uDE3D\uDE3F\uDE40\uDEAB\uDEAD\uDEB0-\uDEB5\uDEB7\uDF1D-\uDF1F\uDF22-\uDF25\uDF27-\uDF2B]|\uD806[\uDC2F-\uDC37\uDC39\uDC3A\uDD30\uDD3B\uDD3C\uDD3E\uDD43\uDDD4-\uDDD7\uDDDA\uDDDB\uDDE0\uDE01-\uDE0A\uDE33-\uDE38\uDE3B-\uDE3E\uDE47\uDE51-\uDE56\uDE59-\uDE5B\uDE8A-\uDE96\uDE98\uDE99]|\uD807[\uDC30-\uDC36\uDC38-\uDC3D\uDC3F\uDC92-\uDCA7\uDCAA-\uDCB0\uDCB2\uDCB3\uDCB5\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD90\uDD91\uDD95\uDD97\uDEF3\uDEF4]|\uD81A[\uDEF0-\uDEF4\uDF30-\uDF36]|\uD81B[\uDF4F\uDF8F-\uDF92\uDFE4]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65\uDD67-\uDD69\uDD6E-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A\uDD30-\uDD36\uDEEC-\uDEEF]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A]|\uD83C[\uDFFB-\uDFFF]|\uDB40[\uDC20-\uDC7F\uDD00-\uDDEF])*\u200D$/,YG=e=>e.search(KG)!==-1,XG=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,$G=e=>{var t=e.match(XG);return t!==null&&t[0].length/2%2==1},PA=e=>vr(e)&&oe.isNodeList(e.children)&&!D.isEditor(e),ge={isAncestor:e=>vr(e)&&oe.isNodeList(e.children),isElement:PA,isElementList:e=>Array.isArray(e)&&e.every(t=>ge.isElement(t)),isElementProps:e=>e.children!==void 0,isElementType:function(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"type";return PA(e)&&e[r]===t},matches(e,t){for(var r in t)if(r!=="children"&&e[r]!==t[r])return!1;return!0}},ZG=["text"],JG=["text"];function jA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ss(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jA(Object(r),!0).forEach(function(n){io(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var NA=new WeakMap,D={above(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{voids:r=!1,mode:n="lowest",at:o=e.selection,match:i}=t;if(o){var a=D.path(e,o),u=n==="lowest";for(var[s,l]of D.levels(e,{at:a,voids:r,match:i,reverse:u}))if(!le.isText(s)&&!M.equals(a,l))return[s,l]}},addMark(e,t,r){e.addMark(t,r)},after(e,t){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:D.point(e,t,{edge:"end"}),focus:D.end(e,[])},{distance:i=1}=n,a=0;for(var u of D.positions(e,Ss(Ss({},n),{},{at:o}))){if(a>i)break;a!==0&&(r=u),a++}return r},before(e,t){var r,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o={anchor:D.start(e,[]),focus:D.point(e,t,{edge:"start"})},{distance:i=1}=n,a=0;for(var u of D.positions(e,Ss(Ss({},n),{},{at:o,reverse:!0}))){if(a>i)break;a!==0&&(r=u),a++}return r},deleteBackward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;e.deleteBackward(r)},deleteForward(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{unit:r="character"}=t;e.deleteForward(r)},deleteFragment(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{direction:r="forward"}=t;e.deleteFragment(r)},edges:(e,t)=>[D.start(e,t),D.end(e,t)],end:(e,t)=>D.point(e,t,{edge:"end"}),first(e,t){var r=D.path(e,t,{edge:"start"});return D.node(e,r)},fragment(e,t){var r=D.range(e,t);return oe.fragment(e,r)},hasBlocks:(e,t)=>t.children.some(r=>D.isBlock(e,r)),hasInlines:(e,t)=>t.children.some(r=>le.isText(r)||D.isInline(e,r)),hasTexts:(e,t)=>t.children.every(r=>le.isText(r)),insertBreak(e){e.insertBreak()},insertFragment(e,t){e.insertFragment(t)},insertNode(e,t){e.insertNode(t)},insertText(e,t){e.insertText(t)},isBlock:(e,t)=>ge.isElement(t)&&!e.isInline(t),isEditor(e){if(!vr(e))return!1;var t=NA.get(e);if(t!==void 0)return t;var r=typeof e.addMark=="function"&&typeof e.apply=="function"&&typeof e.deleteBackward=="function"&&typeof e.deleteForward=="function"&&typeof e.deleteFragment=="function"&&typeof e.insertBreak=="function"&&typeof e.insertFragment=="function"&&typeof e.insertNode=="function"&&typeof e.insertText=="function"&&typeof e.isInline=="function"&&typeof e.isVoid=="function"&&typeof e.normalizeNode=="function"&&typeof e.onChange=="function"&&typeof e.removeMark=="function"&&(e.marks===null||vr(e.marks))&&(e.selection===null||X.isRange(e.selection))&&oe.isNodeList(e.children)&&Di.isOperationList(e.operations);return NA.set(e,r),r},isEnd(e,t,r){var n=D.end(e,r);return _e.equals(t,n)},isEdge:(e,t,r)=>D.isStart(e,t,r)||D.isEnd(e,t,r),isEmpty(e,t){var{children:r}=t,[n]=r;return r.length===0||r.length===1&&le.isText(n)&&n.text===""&&!e.isVoid(t)},isInline:(e,t)=>ge.isElement(t)&&e.isInline(t),isNormalizing(e){var t=OA.get(e);return t===void 0||t},isStart(e,t,r){if(t.offset!==0)return!1;var n=D.start(e,r);return _e.equals(t,n)},isVoid:(e,t)=>ge.isElement(t)&&e.isVoid(t),last(e,t){var r=D.path(e,t,{edge:"end"});return D.node(e,r)},leaf(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=D.path(e,t,r);return[oe.leaf(e,n),n]},*levels(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,reverse:n=!1,voids:o=!1}=t,{match:i}=t;if(i==null&&(i=()=>!0),r){var a=[],u=D.path(e,r);for(var[s,l]of oe.levels(e,u))if(i(s,l)&&(a.push([s,l]),!o&&D.isVoid(e,s)))break;n&&a.reverse(),yield*a}},marks(e){var{marks:t,selection:r}=e;if(!r)return null;if(t)return t;if(X.isExpanded(r)){var[n]=D.nodes(e,{match:le.isText});if(n){var[o]=n;return Vo(o,ZG)}return{}}var{anchor:i}=r,{path:a}=i,[u]=D.leaf(e,a);if(i.offset===0){var s=D.previous(e,{at:a,match:le.isText}),l=D.above(e,{match:d=>D.isBlock(e,d)});if(s&&l){var[c,f]=s,[,p]=l;M.isAncestor(p,f)&&(u=c)}}return Vo(u,JG)},next(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=D.after(e,i,{voids:n});if(a){var[,u]=D.last(e,[]),s=[a.path,u];if(M.isPath(i)&&i.length===0)throw new Error("Cannot get the next node from the root node!");if(o==null)if(M.isPath(i)){var[l]=D.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=D.nodes(e,{at:s,match:o,mode:r,voids:n});return c}}},node(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=D.path(e,t,r);return[oe.get(e,n),n]},*nodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,mode:n="all",universal:o=!1,reverse:i=!1,voids:a=!1}=t,{match:u}=t;if(u||(u=()=>!0),r){var s,l;if(QG.isSpan(r))s=r[0],l=r[1];else{var c=D.path(e,r,{edge:"start"}),f=D.path(e,r,{edge:"end"});s=i?f:c,l=i?c:f}var p,d=oe.nodes(e,{reverse:i,from:s,to:l,pass:b=>{var[w]=b;return!a&&D.isVoid(e,w)}}),v=[];for(var[m,g]of d){var y=p&&M.compare(g,p[1])===0;if(n!=="highest"||!y){if(u(m,g))if(n==="lowest"&&y)p=[m,g];else{var h=n==="lowest"?p:[m,g];h&&(o?v.push(h):yield h),p=[m,g]}else if(o&&!y&&le.isText(m))return}}n==="lowest"&&p&&(o?v.push(p):yield p),o&&(yield*v)}},normalize(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{force:r=!1}=t,n=i=>ug.get(i)||[];if(D.isNormalizing(e)){if(r){var o=Array.from(oe.nodes(e),i=>{var[,a]=i;return a});ug.set(e,o)}n(e).length!==0&&D.withoutNormalizing(e,()=>{for(var i of n(e))if(oe.has(e,i)){var a=D.node(e,i),[u,s]=a;ge.isElement(u)&&u.children.length===0&&e.normalizeNode(a)}for(var l=42*n(e).length,c=0;n(e).length!==0;){if(c>l)throw new Error(`
9
+ Could not completely normalize the editor after `.concat(l,` iterations! This is usually due to incorrect normalization logic that leaves a node in an invalid state.
10
+ `));var f=n(e).pop();if(oe.has(e,f)){var p=D.node(e,f);e.normalizeNode(p)}c++}})}},parent(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=D.path(e,t,r),o=M.parent(n);return D.node(e,o)},path(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{depth:n,edge:o}=r;if(M.isPath(t)){if(o==="start"){var[,i]=oe.first(e,t);t=i}else if(o==="end"){var[,a]=oe.last(e,t);t=a}}return X.isRange(t)&&(t=o==="start"?X.start(t):o==="end"?X.end(t):M.common(t.anchor.path,t.focus.path)),_e.isPoint(t)&&(t=t.path),n!=null&&(t=t.slice(0,n)),t},hasPath:(e,t)=>oe.has(e,t),pathRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:t,affinity:n,unref(){var{current:i}=o;return D.pathRefs(e).delete(o),o.current=null,i}};return D.pathRefs(e).add(o),o},pathRefs(e){var t=BA.get(e);return t||(t=new Set,BA.set(e,t)),t},point(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{edge:n="start"}=r;if(M.isPath(t)){var o;if(n==="end"){var[,i]=oe.last(e,t);o=i}else{var[,a]=oe.first(e,t);o=a}var u=oe.get(e,o);if(!le.isText(u))throw new Error("Cannot get the ".concat(n," point in the node at path [").concat(t,"] because it has no ").concat(n," text node."));return{path:o,offset:n==="end"?u.text.length:0}}if(X.isRange(t)){var[s,l]=X.edges(t);return n==="start"?s:l}return t},pointRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:t,affinity:n,unref(){var{current:i}=o;return D.pointRefs(e).delete(o),o.current=null,i}};return D.pointRefs(e).add(o),o},pointRefs(e){var t=FA.get(e);return t||(t=new Set,FA.set(e,t)),t},*positions(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{at:r=e.selection,unit:n="offset",reverse:o=!1,voids:i=!1}=t;if(r){var a=D.range(e,r),[u,s]=X.edges(a),l=o?s:u,c=!1,f="",p=0,d=0,v=0;for(var[m,g]of D.nodes(e,{at:r,reverse:o,voids:i})){if(ge.isElement(m)){if(!i&&e.isVoid(m)){yield D.start(e,g);continue}if(e.isInline(m))continue;if(D.hasInlines(e,m)){var y=M.isAncestor(g,s.path)?s:D.end(e,g),h=M.isAncestor(g,u.path)?u:D.start(e,g);f=D.string(e,{anchor:h,focus:y},{voids:i}),c=!0}}if(le.isText(m)){var b=M.equals(g,l.path);for(b?(d=o?l.offset:m.text.length-l.offset,v=l.offset):(d=m.text.length,v=o?d:0),(b||c||n==="offset")&&(yield{path:g,offset:v},c=!1);;){if(p===0){if(f==="")break;p=w(f,n,o),f=xb(f,p,o)[1]}if(v=o?v-p:v+p,(d-=p)<0){p=-d;break}p=0,yield{path:g,offset:v}}}}}function w(x,A,S){return A==="character"?Cb(x,S):A==="word"?(function(B){for(var P=arguments.length>1&&arguments[1]!==void 0&&arguments[1],H=0,U=!1;B.length>0;){var W=Cb(B,P),[C,z]=xb(B,W,P);if(_G(C,z,P))U=!0,H+=W;else{if(U)break;H+=W}B=z}return H})(x,S):A==="line"||A==="block"?x.length:1}},previous(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{mode:r="lowest",voids:n=!1}=t,{match:o,at:i=e.selection}=t;if(i){var a=D.before(e,i,{voids:n});if(a){var[,u]=D.first(e,[]),s=[a.path,u];if(M.isPath(i)&&i.length===0)throw new Error("Cannot get the previous node from the root node!");if(o==null)if(M.isPath(i)){var[l]=D.parent(e,i);o=f=>l.children.includes(f)}else o=()=>!0;var[c]=D.nodes(e,{reverse:!0,at:s,match:o,mode:r,voids:n});return c}}},range:(e,t,r)=>X.isRange(t)&&!r?t:{anchor:D.start(e,t),focus:D.end(e,r||t)},rangeRef(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{affinity:n="forward"}=r,o={current:t,affinity:n,unref(){var{current:i}=o;return D.rangeRefs(e).delete(o),o.current=null,i}};return D.rangeRefs(e).add(o),o},rangeRefs(e){var t=_A.get(e);return t||(t=new Set,_A.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){OA.set(e,t)},start:(e,t)=>D.point(e,t,{edge:"start"}),string(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,o=D.range(e,t),[i,a]=X.edges(o),u="";for(var[s,l]of D.nodes(e,{at:o,match:le.isText,voids:n})){var c=s.text;M.equals(l,a.path)&&(c=c.slice(0,a.offset)),M.equals(l,i.path)&&(c=c.slice(i.offset)),u+=c}return u},unhangRange(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{voids:n=!1}=r,[o,i]=X.edges(t);if(o.offset!==0||i.offset!==0||X.isCollapsed(t))return t;var a=D.above(e,{at:i,match:p=>D.isBlock(e,p)}),u=a?a[1]:[],s={anchor:D.start(e,[]),focus:i},l=!0;for(var[c,f]of D.nodes(e,{at:s,match:le.isText,reverse:!0,voids:n}))if(l)l=!1;else if(c.text!==""||M.isBefore(f,u)){i={path:f,offset:c.text.length};break}return{anchor:o,focus:i}},void(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return D.above(e,Ss(Ss({},t),{},{match:r=>D.isVoid(e,r)}))},withoutNormalizing(e,t){var r=D.isNormalizing(e);D.setNormalizing(e,!1);try{t()}finally{D.setNormalizing(e,r)}D.normalize(e)}},QG={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(M.isPath)},eK=["children"],tK=["text"],RA=new WeakMap,oe={ancestor(e,t){var r=oe.get(e,t);if(le.isText(r))throw new Error("Cannot get the ancestor node at path [".concat(t,"] because it refers to a text node instead: ").concat(r));return r},*ancestors(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of M.ancestors(t,r)){var o=[oe.ancestor(e,n),n];yield o}},child(e,t){if(le.isText(e))throw new Error("Cannot get the child of a text node: ".concat(JSON.stringify(e)));var r=e.children[t];if(r==null)throw new Error("Cannot get child at index `".concat(t,"` in node: ").concat(JSON.stringify(e)));return r},*children(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{reverse:n=!1}=r,o=oe.ancestor(e,t),{children:i}=o,a=n?i.length-1:0;n?a>=0:a<i.length;){var u=oe.child(o,a),s=t.concat(a);yield[u,s],a=n?a-1:a+1}},common(e,t,r){var n=M.common(t,r);return[oe.get(e,n),n]},descendant(e,t){var r=oe.get(e,t);if(D.isEditor(r))throw new Error("Cannot get the descendant node at path [".concat(t,"] because it refers to the root editor node instead: ").concat(r));return r},*descendants(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of oe.nodes(e,t))n.length!==0&&(yield[r,n])},*elements(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of oe.nodes(e,t))ge.isElement(r)&&(yield[r,n])},extractProps:e=>ge.isAncestor(e)?Vo(e,eK):Vo(e,tK),first(e,t){for(var r=t.slice(),n=oe.get(e,r);n&&!le.isText(n)&&n.children.length!==0;)n=n.children[0],r.push(0);return[n,r]},fragment(e,t){if(le.isText(e))throw new Error("Cannot get a fragment starting from a root text node: ".concat(JSON.stringify(e)));var r=ag({children:e.children},n=>{var[o,i]=X.edges(t),a=oe.nodes(n,{reverse:!0,pass:p=>{var[,d]=p;return!X.includes(t,d)}});for(var[,u]of a){if(!X.includes(t,u)){var s=oe.parent(n,u),l=u[u.length-1];s.children.splice(l,1)}if(M.equals(u,i.path)){var c=oe.leaf(n,u);c.text=c.text.slice(0,i.offset)}if(M.equals(u,o.path)){var f=oe.leaf(n,u);f.text=f.text.slice(o.offset)}}D.isEditor(n)&&(n.selection=null)});return r.children},get(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if(le.isText(r)||!r.children[o])throw new Error("Cannot find a descendant at path [".concat(t,"] in node: ").concat(JSON.stringify(e)));r=r.children[o]}return r},has(e,t){for(var r=e,n=0;n<t.length;n++){var o=t[n];if(le.isText(r)||!r.children[o])return!1;r=r.children[o]}return!0},isNode:e=>le.isText(e)||ge.isElement(e)||D.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=RA.get(e);if(t!==void 0)return t;var r=e.every(n=>oe.isNode(n));return RA.set(e,r),r},last(e,t){for(var r=t.slice(),n=oe.get(e,r);n&&!le.isText(n)&&n.children.length!==0;){var o=n.children.length-1;n=n.children[o],r.push(o)}return[n,r]},leaf(e,t){var r=oe.get(e,t);if(!le.isText(r))throw new Error("Cannot get the leaf node at path [".concat(t,"] because it refers to a non-leaf node: ").concat(r));return r},*levels(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};for(var n of M.levels(t,r)){var o=oe.get(e,n);yield[o,n]}},matches:(e,t)=>ge.isElement(e)&&ge.isElementProps(t)&&ge.matches(e,t)||le.isText(e)&&le.isTextProps(t)&&le.matches(e,t),*nodes(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{pass:r,reverse:n=!1}=t,{from:o=[],to:i}=t,a=new Set,u=[],s=e;!i||!(n?M.isBefore(u,i):M.isAfter(u,i));)if(a.has(s)||(yield[s,u]),a.has(s)||le.isText(s)||s.children.length===0||r!=null&&r([s,u])!==!1){if(u.length===0)break;if(!n){var l=M.next(u);if(oe.has(e,l)){u=l,s=oe.get(e,u);continue}}n&&u[u.length-1]!==0?(u=M.previous(u),s=oe.get(e,u)):(u=M.parent(u),s=oe.get(e,u),a.add(s))}else{a.add(s);var c=n?s.children.length-1:0;M.isAncestor(u,o)&&(c=o[u.length]),u=u.concat(c),s=oe.get(e,u)}},parent(e,t){var r=M.parent(t),n=oe.get(e,r);if(le.isText(n))throw new Error("Cannot get the parent of path [".concat(t,"] because it does not exist in the root."));return n},string:e=>le.isText(e)?e.text:e.children.map(oe.string).join(""),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[r,n]of oe.nodes(e,t))le.isText(r)&&(yield[r,n])}};function IA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Vt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?IA(Object(r),!0).forEach(function(n){io(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):IA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Di={isNodeOperation:e=>Di.isOperation(e)&&e.type.endsWith("_node"),isOperation(e){if(!vr(e))return!1;switch(e.type){case"insert_node":case"remove_node":return M.isPath(e.path)&&oe.isNode(e.node);case"insert_text":case"remove_text":return typeof e.offset=="number"&&typeof e.text=="string"&&M.isPath(e.path);case"merge_node":return typeof e.position=="number"&&M.isPath(e.path)&&vr(e.properties);case"move_node":return M.isPath(e.path)&&M.isPath(e.newPath);case"set_node":return M.isPath(e.path)&&vr(e.properties)&&vr(e.newProperties);case"set_selection":return e.properties===null&&X.isRange(e.newProperties)||e.newProperties===null&&X.isRange(e.properties)||vr(e.properties)&&vr(e.newProperties);case"split_node":return M.isPath(e.path)&&typeof e.position=="number"&&vr(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every(t=>Di.isOperation(t)),isSelectionOperation:e=>Di.isOperation(e)&&e.type.endsWith("_selection"),isTextOperation:e=>Di.isOperation(e)&&e.type.endsWith("_text"),inverse(e){switch(e.type){case"insert_node":return Vt(Vt({},e),{},{type:"remove_node"});case"insert_text":return Vt(Vt({},e),{},{type:"remove_text"});case"merge_node":return Vt(Vt({},e),{},{type:"split_node",path:M.previous(e.path)});case"move_node":var{newPath:t,path:r}=e;if(M.equals(t,r))return e;if(M.isSibling(r,t))return Vt(Vt({},e),{},{path:t,newPath:r});var n=M.transform(r,e),o=M.transform(M.next(r),e);return Vt(Vt({},e),{},{path:n,newPath:o});case"remove_node":return Vt(Vt({},e),{},{type:"insert_node"});case"remove_text":return Vt(Vt({},e),{},{type:"insert_text"});case"set_node":var{properties:i,newProperties:a}=e;return Vt(Vt({},e),{},{properties:a,newProperties:i});case"set_selection":var{properties:u,newProperties:s}=e;return Vt(Vt({},e),{},u==null?{properties:s,newProperties:null}:s==null?{properties:null,newProperties:u}:{properties:s,newProperties:u});case"split_node":return Vt(Vt({},e),{},{type:"merge_node",path:M.next(e.path)})}}},M={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=M.levels(e,t);return n=r?n.slice(1):n.slice(0,-1)},common(e,t){for(var r=[],n=0;n<e.length&&n<t.length;n++){var o=e[n];if(o!==t[n])break;r.push(o)}return r},compare(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++){if(e[n]<t[n])return-1;if(e[n]>t[n])return 1}return 0},endsAfter(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],a=t[r];return M.equals(n,o)&&i>a},endsAt(e,t){var r=e.length,n=e.slice(0,r),o=t.slice(0,r);return M.equals(n,o)},endsBefore(e,t){var r=e.length-1,n=e.slice(0,r),o=t.slice(0,r),i=e[r],a=t[r];return M.equals(n,o)&&i<a},equals:(e,t)=>e.length===t.length&&e.every((r,n)=>r===t[n]),hasPrevious:e=>e[e.length-1]>0,isAfter:(e,t)=>M.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&M.compare(e,t)===0,isBefore:(e,t)=>M.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&M.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&M.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&M.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&M.compare(e,t)===0,isPath:e=>Array.isArray(e)&&(e.length===0||typeof e[0]=="number"),isSibling(e,t){if(e.length!==t.length)return!1;var r=e.slice(0,-1),n=t.slice(0,-1);return e[e.length-1]!==t[t.length-1]&&M.equals(r,n)},levels(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,n=[],o=0;o<=e.length;o++)n.push(e.slice(0,o));return r&&n.reverse(),n},next(e){if(e.length===0)throw new Error("Cannot get the next path of a root path [".concat(e,"], because it has no next index."));var t=e[e.length-1];return e.slice(0,-1).concat(t+1)},parent(e){if(e.length===0)throw new Error("Cannot get the parent path of the root path [".concat(e,"]."));return e.slice(0,-1)},previous(e){if(e.length===0)throw new Error("Cannot get the previous path of a root path [".concat(e,"], because it has no previous index."));var t=e[e.length-1];if(t<=0)throw new Error("Cannot get the previous path of a first child path [".concat(e,"] because it would result in a negative index."));return e.slice(0,-1).concat(t-1)},relative(e,t){if(!M.isAncestor(t,e)&&!M.equals(e,t))throw new Error("Cannot get the relative path of [".concat(e,"] inside ancestor [").concat(t,"], because it is not above or equal to the path."));return e.slice(t.length)},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ag(e,n=>{var{affinity:o="forward"}=r;if(e&&e?.length!==0){if(n===null)return null;switch(t.type){case"insert_node":var{path:i}=t;(M.equals(i,n)||M.endsBefore(i,n)||M.isAncestor(i,n))&&(n[i.length-1]+=1);break;case"remove_node":var{path:a}=t;if(M.equals(a,n)||M.isAncestor(a,n))return null;M.endsBefore(a,n)&&(n[a.length-1]-=1);break;case"merge_node":var{path:u,position:s}=t;M.equals(u,n)||M.endsBefore(u,n)?n[u.length-1]-=1:M.isAncestor(u,n)&&(n[u.length-1]-=1,n[u.length]+=s);break;case"split_node":var{path:l,position:c}=t;if(M.equals(l,n)){if(o==="forward")n[n.length-1]+=1;else if(o!=="backward")return null}else M.endsBefore(l,n)?n[l.length-1]+=1:M.isAncestor(l,n)&&e[l.length]>=c&&(n[l.length-1]+=1,n[l.length]-=c);break;case"move_node":var{path:f,newPath:p}=t;if(M.equals(f,p))return;if(M.isAncestor(f,n)||M.equals(f,n)){var d=p.slice();return M.endsBefore(f,p)&&f.length<p.length&&(d[f.length-1]-=1),d.concat(n.slice(f.length))}M.isSibling(f,p)&&(M.isAncestor(p,n)||M.equals(p,n))?M.endsBefore(f,n)?n[f.length-1]-=1:n[f.length-1]+=1:M.endsBefore(p,n)||M.equals(p,n)||M.isAncestor(p,n)?(M.endsBefore(f,n)&&(n[f.length-1]-=1),n[p.length-1]+=1):M.endsBefore(f,n)&&(M.equals(p,n)&&(n[p.length-1]+=1),n[f.length-1]-=1)}}})}},rK={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=M.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}};function LA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function MA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?LA(Object(r),!0).forEach(function(n){io(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):LA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var _e={compare(e,t){var r=M.compare(e.path,t.path);return r===0?e.offset<t.offset?-1:e.offset>t.offset?1:0:r},isAfter:(e,t)=>_e.compare(e,t)===1,isBefore:(e,t)=>_e.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&M.equals(e.path,t.path),isPoint:e=>vr(e)&&typeof e.offset=="number"&&M.isPath(e.path),transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ag(e,n=>{if(n===null)return null;var{affinity:o="forward"}=r,{path:i,offset:a}=n;switch(t.type){case"insert_node":case"move_node":n.path=M.transform(i,t,r);break;case"insert_text":M.equals(t.path,i)&&t.offset<=a&&(n.offset+=t.text.length);break;case"merge_node":M.equals(t.path,i)&&(n.offset+=t.position),n.path=M.transform(i,t,r);break;case"remove_text":M.equals(t.path,i)&&t.offset<=a&&(n.offset-=Math.min(a-t.offset,t.text.length));break;case"remove_node":if(M.equals(t.path,i)||M.isAncestor(t.path,i))return null;n.path=M.transform(i,t,r);break;case"split_node":if(M.equals(t.path,i)){if(t.position===a&&o==null)return null;(t.position<a||t.position===a&&o==="forward")&&(n.offset-=t.position,n.path=M.transform(i,t,MA(MA({},r),{},{affinity:"forward"})))}else n.path=M.transform(i,t,r)}})}},nK={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=_e.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},oK=["anchor","focus"];function zA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}var X={edges(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:r=!1}=t,{anchor:n,focus:o}=e;return X.isBackward(e)===r?[n,o]:[o,n]},end(e){var[,t]=X.edges(e);return t},equals:(e,t)=>_e.equals(e.anchor,t.anchor)&&_e.equals(e.focus,t.focus),includes(e,t){if(X.isRange(t)){if(X.includes(e,t.anchor)||X.includes(e,t.focus))return!0;var[r,n]=X.edges(e),[o,i]=X.edges(t);return _e.isBefore(r,o)&&_e.isAfter(n,i)}var[a,u]=X.edges(e),s=!1,l=!1;return _e.isPoint(t)?(s=_e.compare(t,a)>=0,l=_e.compare(t,u)<=0):(s=M.compare(t,a.path)>=0,l=M.compare(t,u.path)<=0),s&&l},intersection(e,t){var r=Vo(e,oK),[n,o]=X.edges(e),[i,a]=X.edges(t),u=_e.isBefore(n,i)?i:n,s=_e.isBefore(o,a)?o:a;return _e.isBefore(s,u)?null:(function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c]!=null?arguments[c]:{};c%2?zA(Object(f),!0).forEach(function(p){io(l,p,f[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(f)):zA(Object(f)).forEach(function(p){Object.defineProperty(l,p,Object.getOwnPropertyDescriptor(f,p))})}return l})({anchor:u,focus:s},r)},isBackward(e){var{anchor:t,focus:r}=e;return _e.isAfter(t,r)},isCollapsed(e){var{anchor:t,focus:r}=e;return _e.equals(t,r)},isExpanded:e=>!X.isCollapsed(e),isForward:e=>!X.isBackward(e),isRange:e=>vr(e)&&_e.isPoint(e.anchor)&&_e.isPoint(e.focus),*points(e){yield[e.anchor,"anchor"],yield[e.focus,"focus"]},start(e){var[t]=X.edges(e);return t},transform(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return ag(e,n=>{if(n===null)return null;var o,i,{affinity:a="inward"}=r;if(a==="inward"){var u=X.isCollapsed(n);X.isForward(n)?(o="forward",i=u?o:"backward"):(o="backward",i=u?o:"forward")}else a==="outward"?X.isForward(n)?(o="backward",i="forward"):(o="forward",i="backward"):(o=a,i=a);var s=_e.transform(n.anchor,t,{affinity:o}),l=_e.transform(n.focus,t,{affinity:i});if(!s||!l)return null;n.anchor=s,n.focus=l})}},iK={transform(e,t){var{current:r,affinity:n}=e;if(r!=null){var o=X.transform(r,t,{affinity:n});e.current=o,o==null&&e.unref()}}},VA=(e,t)=>{for(var r in e){var n=e[r],o=t[r];if(vr(n)&&vr(o)){if(!VA(n,o))return!1}else if(Array.isArray(n)&&Array.isArray(o)){if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(n[i]!==o[i])return!1}else if(n!==o)return!1}for(var a in t)if(e[a]===void 0&&t[a]!==void 0)return!1;return!0},aK=["text"],uK=["anchor","focus"];function HA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ho(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?HA(Object(r),!0).forEach(function(n){io(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):HA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var le={equals(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{loose:n=!1}=r;function o(i){return Vo(i,aK)}return VA(n?o(e):e,n?o(t):t)},isText:e=>vr(e)&&typeof e.text=="string",isTextList:e=>Array.isArray(e)&&e.every(t=>le.isText(t)),isTextProps:e=>e.text!==void 0,matches(e,t){for(var r in t)if(r!=="text"&&(!e.hasOwnProperty(r)||e[r]!==t[r]))return!1;return!0},decorations(e,t){var r=[Ho({},e)];for(var n of t){var o=Vo(n,uK),[i,a]=X.edges(n),u=[],s=0;for(var l of r){var{length:c}=l.text,f=s;if(s+=c,i.offset<=f&&a.offset>=s)Object.assign(l,o),u.push(l);else if(i.offset!==a.offset&&(i.offset===s||a.offset===f)||i.offset>s||a.offset<f||a.offset===f&&f!==0)u.push(l);else{var p=l,d=void 0,v=void 0;if(a.offset<s){var m=a.offset-f;v=Ho(Ho({},p),{},{text:p.text.slice(m)}),p=Ho(Ho({},p),{},{text:p.text.slice(0,m)})}if(i.offset>f){var g=i.offset-f;d=Ho(Ho({},p),{},{text:p.text.slice(0,g)}),p=Ho(Ho({},p),{},{text:p.text.slice(g)})}Object.assign(p,o),d&&u.push(d),u.push(p),v&&u.push(v)}}r=u}return r}};function UA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Gc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?UA(Object(r),!0).forEach(function(n){io(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var sK={transform(e,t){e.children=AA(e.children);var r=e.selection&&AA(e.selection);try{r=((n,o,i)=>{switch(i.type){case"insert_node":var{path:a,node:u}=i,s=oe.parent(n,a),l=a[a.length-1];if(l>s.children.length)throw new Error('Cannot apply an "insert_node" operation at path ['.concat(a,"] because the destination is past the end of the node."));if(s.children.splice(l,0,u),o)for(var[c,f]of X.points(o))o[f]=_e.transform(c,i);break;case"insert_text":var{path:p,offset:d,text:v}=i;if(v.length===0)break;var m=oe.leaf(n,p),g=m.text.slice(0,d),y=m.text.slice(d);if(m.text=g+v+y,o)for(var[h,b]of X.points(o))o[b]=_e.transform(h,i);break;case"merge_node":var{path:w}=i,x=oe.get(n,w),A=M.previous(w),S=oe.get(n,A),B=oe.parent(n,w),P=w[w.length-1];if(le.isText(x)&&le.isText(S))S.text+=x.text;else{if(le.isText(x)||le.isText(S))throw new Error('Cannot apply a "merge_node" operation at path ['.concat(w,"] to nodes of different interfaces: ").concat(x," ").concat(S));S.children.push(...x.children)}if(B.children.splice(P,1),o)for(var[H,U]of X.points(o))o[U]=_e.transform(H,i);break;case"move_node":var{path:W,newPath:C}=i;if(M.isAncestor(W,C))throw new Error("Cannot move a path [".concat(W,"] to new path [").concat(C,"] because the destination is inside itself."));var z=oe.get(n,W),k=oe.parent(n,W),I=W[W.length-1];k.children.splice(I,1);var Y=M.transform(W,i),$=oe.get(n,M.parent(Y)),ee=Y[Y.length-1];if($.children.splice(ee,0,z),o)for(var[Q,F]of X.points(o))o[F]=_e.transform(Q,i);break;case"remove_node":var{path:O}=i,j=O[O.length-1];if(oe.parent(n,O).children.splice(j,1),o)for(var[N,q]of X.points(o)){var G=_e.transform(N,i);if(o!=null&&G!=null)o[q]=G;else{var te=void 0,fe=void 0;for(var[de,he]of oe.texts(n)){if(M.compare(he,O)!==-1){fe=[de,he];break}te=[de,he]}var J=!1;te&&fe&&(J=M.equals(fe[1],O)?!M.hasPrevious(fe[1]):M.common(te[1],O).length<M.common(fe[1],O).length),te&&!J?(N.path=te[1],N.offset=te[0].text.length):fe?(N.path=fe[1],N.offset=0):o=null}}break;case"remove_text":var{path:xe,offset:be,text:ce}=i;if(ce.length===0)break;var Fe=oe.leaf(n,xe),_t=Fe.text.slice(0,be),qe=Fe.text.slice(be+ce.length);if(Fe.text=_t+qe,o)for(var[tt,bt]of X.points(o))o[bt]=_e.transform(tt,i);break;case"set_node":var{path:Dr,properties:ze,newProperties:Gr}=i;if(Dr.length===0)throw new Error("Cannot set properties on the root node!");var $n=oe.get(n,Dr);for(var _o in Gr){if(_o==="children"||_o==="text")throw new Error('Cannot set the "'.concat(_o,'" property of nodes!'));var fc=Gr[_o];fc==null?delete $n[_o]:$n[_o]=fc}for(var ls in ze)Gr.hasOwnProperty(ls)||delete $n[ls];break;case"set_selection":var{newProperties:Zn}=i;if(Zn==null)o=Zn;else{if(o==null){if(!X.isRange(Zn))throw new Error('Cannot apply an incomplete "set_selection" operation properties '.concat(JSON.stringify(Zn)," when there is no current selection."));o=Gc({},Zn)}for(var To in Zn){var si=Zn[To];if(si==null){if(To==="anchor"||To==="focus")throw new Error('Cannot remove the "'.concat(To,'" selection property'));delete o[To]}else o[To]=si}}break;case"split_node":var{path:Sr,position:Ar,properties:kr}=i;if(Sr.length===0)throw new Error('Cannot apply a "split_node" operation at path ['.concat(Sr,"] because the root node cannot be split."));var Pr,cr=oe.get(n,Sr),Pn=oe.parent(n,Sr),uh=Sr[Sr.length-1];if(le.isText(cr)){var Fa=cr.text.slice(0,Ar),li=cr.text.slice(Ar);cr.text=Fa,Pr=Gc(Gc({},kr),{},{text:li})}else{var dc=cr.children.slice(0,Ar),cs=cr.children.slice(Ar);cr.children=dc,Pr=Gc(Gc({},kr),{},{children:cs})}if(Pn.children.splice(uh+1,0,Pr),o)for(var[pc,Jn]of X.points(o))o[Jn]=_e.transform(pc,i)}return o})(e,r,t)}finally{e.children=kA(e.children),e.selection=r?Ya(r)?kA(r):r:null}}},lK=["text"],cK=["children"];function qA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function WA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qA(Object(r),!0).forEach(function(n){io(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var fK={insertNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:o=!1,mode:i="lowest"}=r,{at:a,match:u,select:s}=r;if(oe.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(a||(a=e.selection?e.selection:e.children.length>0?D.end(e,[]):[0],s=!0),s==null&&(s=!1),X.isRange(a))if(n||(a=D.unhangRange(e,a)),X.isCollapsed(a))a=a.anchor;else{var[,c]=X.edges(a),f=D.pointRef(e,c);V.delete(e,{at:a}),a=f.unref()}if(_e.isPoint(a)){u==null&&(u=le.isText(l)?A=>le.isText(A):e.isInline(l)?A=>le.isText(A)||D.isInline(e,A):A=>D.isBlock(e,A));var[p]=D.nodes(e,{at:a.path,match:u,mode:i,voids:o});if(!p)return;var[,d]=p,v=D.pathRef(e,d),m=D.isEnd(e,a,d);V.splitNodes(e,{at:a,match:u,mode:i,voids:o});var g=v.unref();a=m?M.next(g):g}var y=M.parent(a),h=a[a.length-1];if(o||!D.void(e,{at:y})){for(var b of t){var w=y.concat(h);h++,e.apply({type:"insert_node",path:w,node:b}),a=M.next(a)}if(a=M.previous(a),s){var x=D.end(e,a);x&&V.select(e,x)}}}})},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{at:r=e.selection,mode:n="lowest",voids:o=!1}=t,{match:i}=t;if(i==null&&(i=M.isPath(r)?As(e,r):b=>D.isBlock(e,b)),r){var a=D.nodes(e,{at:r,match:i,mode:n,voids:o}),u=Array.from(a,b=>{var[,w]=b;return D.pathRef(e,w)});for(var s of u){var l=s.unref();if(l.length<2)throw new Error("Cannot lift node at a path [".concat(l,"] because it has a depth of less than `2`."));var c=D.node(e,M.parent(l)),[f,p]=c,d=l[l.length-1],{length:v}=f.children;if(v===1){var m=M.next(p);V.moveNodes(e,{at:l,to:m,voids:o}),V.removeNodes(e,{at:p,voids:o})}else if(d===0)V.moveNodes(e,{at:l,to:p,voids:o});else if(d===v-1){var g=M.next(p);V.moveNodes(e,{at:l,to:g,voids:o})}else{var y=M.next(l),h=M.next(p);V.splitNodes(e,{at:y,voids:o}),V.moveNodes(e,{at:l,to:h,voids:o})}}}})},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{match:r,at:n=e.selection}=t,{hanging:o=!1,voids:i=!1,mode:a="lowest"}=t;if(n){if(r==null)if(M.isPath(n)){var[u]=D.parent(e,n);r=P=>u.children.includes(P)}else r=P=>D.isBlock(e,P);if(!o&&X.isRange(n)&&(n=D.unhangRange(e,n)),X.isRange(n))if(X.isCollapsed(n))n=n.anchor;else{var[,s]=X.edges(n),l=D.pointRef(e,s);V.delete(e,{at:n}),n=l.unref(),t.at==null&&V.select(e,n)}var[c]=D.nodes(e,{at:n,match:r,voids:i,mode:a}),f=D.previous(e,{at:n,match:r,voids:i,mode:a});if(c&&f){var[p,d]=c,[v,m]=f;if(d.length!==0&&m.length!==0){var g,y,h=M.next(m),b=M.common(d,m),w=M.isSibling(d,m),x=Array.from(D.levels(e,{at:d}),P=>{var[H]=P;return H}).slice(b.length).slice(0,-1),A=D.above(e,{at:d,mode:"highest",match:P=>x.includes(P)&&GA(e,P)}),S=A&&D.pathRef(e,A[1]);if(le.isText(p)&&le.isText(v)){var B=Vo(p,lK);y=v.text.length,g=B}else{if(!ge.isElement(p)||!ge.isElement(v))throw new Error("Cannot merge the node at path [".concat(d,"] with the previous sibling because it is not the same kind: ").concat(JSON.stringify(p)," ").concat(JSON.stringify(v)));B=Vo(p,cK),y=v.children.length,g=B}w||V.moveNodes(e,{at:d,to:h,voids:i}),S&&V.removeNodes(e,{at:S.current,voids:i}),ge.isElement(v)&&D.isEmpty(e,v)||le.isText(v)&&v.text===""&&m[m.length-1]!==0?V.removeNodes(e,{at:m,voids:i}):e.apply({type:"merge_node",path:h,position:y,properties:g}),S&&S.unref()}}}})},moveNodes(e,t){D.withoutNormalizing(e,()=>{var{to:r,at:n=e.selection,mode:o="lowest",voids:i=!1}=t,{match:a}=t;if(n){a==null&&(a=M.isPath(n)?As(e,n):d=>D.isBlock(e,d));var u=D.pathRef(e,r),s=D.nodes(e,{at:n,match:a,mode:o,voids:i}),l=Array.from(s,d=>{var[,v]=d;return D.pathRef(e,v)});for(var c of l){var f=c.unref(),p=u.current;f.length!==0&&e.apply({type:"move_node",path:f,newPath:p}),u.current&&M.isSibling(p,f)&&M.isAfter(p,f)&&(u.current=M.next(u.current))}u.unref()}})},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{hanging:r=!1,voids:n=!1,mode:o="lowest"}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=M.isPath(i)?As(e,i):p=>D.isBlock(e,p)),!r&&X.isRange(i)&&(i=D.unhangRange(e,i));var u=D.nodes(e,{at:i,match:a,mode:o,voids:n}),s=Array.from(u,p=>{var[,d]=p;return D.pathRef(e,d)});for(var l of s){var c=l.unref();if(c){var[f]=D.node(e,c);e.apply({type:"remove_node",path:c,node:f})}}}})},setNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{match:n,at:o=e.selection}=r,{hanging:i=!1,mode:a="lowest",split:u=!1,voids:s=!1}=r;if(o){if(n==null&&(n=M.isPath(o)?As(e,o):x=>D.isBlock(e,x)),!i&&X.isRange(o)&&(o=D.unhangRange(e,o)),u&&X.isRange(o)){if(X.isCollapsed(o)&&D.leaf(e,o.anchor)[0].text.length>0)return;var l=D.rangeRef(e,o,{affinity:"inward"}),[c,f]=X.edges(o),p=a==="lowest"?"lowest":"highest",d=D.isEnd(e,f,f.path);V.splitNodes(e,{at:f,match:n,mode:p,voids:s,always:!d});var v=D.isStart(e,c,c.path);V.splitNodes(e,{at:c,match:n,mode:p,voids:s,always:!v}),o=l.unref(),r.at==null&&V.select(e,o)}for(var[m,g]of D.nodes(e,{at:o,match:n,mode:a,voids:s})){var y={},h={};if(g.length!==0){var b=!1;for(var w in t)w!=="children"&&w!=="text"&&t[w]!==m[w]&&(b=!0,m.hasOwnProperty(w)&&(y[w]=m[w]),t[w]!=null&&(h[w]=t[w]));b&&e.apply({type:"set_node",path:g,properties:y,newProperties:h})}}}})},splitNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{mode:r="lowest",voids:n=!1}=t,{match:o,at:i=e.selection,height:a=0,always:u=!1}=t;if(o==null&&(o=z=>D.isBlock(e,z)),X.isRange(i)&&(i=dK(e,i)),M.isPath(i)){var s=i,l=D.point(e,s),[c]=D.parent(e,s);o=z=>z===c,a=l.path.length-s.length+1,i=l,u=!0}if(i){var f=D.pointRef(e,i,{affinity:"backward"}),[p]=D.nodes(e,{at:i,match:o,mode:r,voids:n});if(p){var d=D.void(e,{at:i,mode:"highest"});if(!n&&d){var[v,m]=d;if(ge.isElement(v)&&e.isInline(v)){var g=D.after(e,m);if(!g){var y=M.next(m);V.insertNodes(e,{text:""},{at:y,voids:n}),g=D.point(e,y)}i=g,u=!0}a=i.path.length-m.length+1,u=!0}var h=D.pointRef(e,i),b=i.path.length-a,[,w]=p,x=i.path.slice(0,b),A=a===0?i.offset:i.path[b]+0;for(var[S,B]of D.levels(e,{at:x,reverse:!0,voids:n})){var P=!1;if(B.length<w.length||B.length===0||!n&&D.isVoid(e,S))break;var H=f.current,U=D.isEnd(e,H,B);if(u||!f||!D.isEdge(e,H,B)){P=!0;var W=oe.extractProps(S);e.apply({type:"split_node",path:B,position:A,properties:W})}A=B[B.length-1]+(P||U?1:0)}if(t.at==null){var C=h.current||D.end(e,[]);V.select(e,C)}f.unref(),h.unref()}}})},unsetNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var n={};for(var o of t)n[o]=null;V.setNodes(e,n,r)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{mode:r="lowest",split:n=!1,voids:o=!1}=t,{at:i=e.selection,match:a}=t;if(i){a==null&&(a=M.isPath(i)?As(e,i):p=>D.isBlock(e,p)),M.isPath(i)&&(i=D.range(e,i));var u=X.isRange(i)?D.rangeRef(e,i):null,s=D.nodes(e,{at:i,match:a,mode:r,voids:o}),l=Array.from(s,p=>{var[,d]=p;return D.pathRef(e,d)}).reverse(),c=function(p){var d=p.unref(),[v]=D.node(e,d),m=D.range(e,d);n&&u&&(m=X.intersection(u.current,m)),V.liftNodes(e,{at:m,match:g=>ge.isAncestor(v)&&v.children.includes(g),voids:o})};for(var f of l)c(f);u&&u.unref()}})},wrapNodes(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{mode:n="lowest",split:o=!1,voids:i=!1}=r,{match:a,at:u=e.selection}=r;if(u){if(a==null&&(a=M.isPath(u)?As(e,u):e.isInline(t)?g=>D.isInline(e,g)||le.isText(g):g=>D.isBlock(e,g)),o&&X.isRange(u)){var[s,l]=X.edges(u),c=D.rangeRef(e,u,{affinity:"inward"});V.splitNodes(e,{at:l,match:a,voids:i}),V.splitNodes(e,{at:s,match:a,voids:i}),u=c.unref(),r.at==null&&V.select(e,u)}var f=Array.from(D.nodes(e,{at:u,match:e.isInline(t)?g=>D.isBlock(e,g):g=>D.isEditor(g),mode:"lowest",voids:i}));for(var[,p]of f){var d=X.isRange(u)?X.intersection(u,D.range(e,p)):u;if(d){var v=Array.from(D.nodes(e,{at:d,match:a,mode:n,voids:i}));if(v.length>0){var m=(function(){var[g]=v,y=v[v.length-1],[,h]=g,[,b]=y;if(h.length===0&&b.length===0)return"continue";var w=M.equals(h,b)?M.parent(h):M.common(h,b),x=D.range(e,h,b),A=D.node(e,w),[S]=A,B=w.length+1,P=M.next(b.slice(0,B)),H=WA(WA({},t),{},{children:[]});V.insertNodes(e,H,{at:P,voids:i}),V.moveNodes(e,{at:x,match:U=>ge.isAncestor(S)&&S.children.includes(U),to:P.concat(0),voids:i})})();if(m==="continue")continue}}}}})}},GA=(e,t)=>{if(ge.isElement(t)){var r=t;return!!D.isVoid(e,t)||r.children.length===1&&GA(e,r.children[0])}return!D.isEditor(t)},dK=(e,t)=>{if(X.isCollapsed(t))return t.anchor;var[,r]=X.edges(t),n=D.pointRef(e,r);return V.delete(e,{at:t}),n.unref()},As=(e,t)=>{var[r]=D.node(e,t);return n=>n===r};function KA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function YA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?KA(Object(r),!0).forEach(function(n){io(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var pK={collapse(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{edge:r="anchor"}=t,{selection:n}=e;if(n){if(r==="anchor")V.select(e,n.anchor);else if(r==="focus")V.select(e,n.focus);else if(r==="start"){var[o]=X.edges(n);V.select(e,o)}else if(r==="end"){var[,i]=X.edges(n);V.select(e,i)}}},deselect(e){var{selection:t}=e;t&&e.apply({type:"set_selection",properties:t,newProperties:null})},move(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:r}=e,{distance:n=1,unit:o="character",reverse:i=!1}=t,{edge:a=null}=t;if(r){a==="start"&&(a=X.isBackward(r)?"focus":"anchor"),a==="end"&&(a=X.isBackward(r)?"anchor":"focus");var{anchor:u,focus:s}=r,l={distance:n,unit:o},c={};if(a==null||a==="anchor"){var f=i?D.before(e,u,l):D.after(e,u,l);f&&(c.anchor=f)}if(a==null||a==="focus"){var p=i?D.before(e,s,l):D.after(e,s,l);p&&(c.focus=p)}V.setSelection(e,c)}},select(e,t){var{selection:r}=e;if(t=D.range(e,t),r)V.setSelection(e,t);else{if(!X.isRange(t))throw new Error("When setting the selection and the current selection is `null` you must provide at least an `anchor` and `focus`, but you passed: ".concat(JSON.stringify(t)));e.apply({type:"set_selection",properties:r,newProperties:t})}},setPoint(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{selection:n}=e,{edge:o="both"}=r;if(n){o==="start"&&(o=X.isBackward(n)?"focus":"anchor"),o==="end"&&(o=X.isBackward(n)?"anchor":"focus");var{anchor:i,focus:a}=n,u=o==="anchor"?i:a;V.setSelection(e,{[o==="anchor"?"anchor":"focus"]:YA(YA({},u),t)})}},setSelection(e,t){var{selection:r}=e,n={},o={};if(r){for(var i in t)(i==="anchor"&&t.anchor!=null&&!_e.equals(t.anchor,r.anchor)||i==="focus"&&t.focus!=null&&!_e.equals(t.focus,r.focus)||i!=="anchor"&&i!=="focus"&&t[i]!==r[i])&&(n[i]=r[i],o[i]=t[i]);Object.keys(n).length>0&&e.apply({type:"set_selection",properties:n,newProperties:o})}}},hK={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};D.withoutNormalizing(e,()=>{var{reverse:r=!1,unit:n="character",distance:o=1,voids:i=!1}=t,{at:a=e.selection,hanging:u=!1}=t;if(a){if(X.isRange(a)&&X.isCollapsed(a)&&(a=a.anchor),_e.isPoint(a)){var s=D.void(e,{at:a,mode:"highest"});if(!i&&s){var[,l]=s;a=l}else{var c={unit:n,distance:o};a={anchor:a,focus:r?D.before(e,a,c)||D.start(e,[]):D.after(e,a,c)||D.end(e,[])},u=!0}}if(M.isPath(a))V.removeNodes(e,{at:a,voids:i});else if(!X.isCollapsed(a)){if(!u){var[,f]=X.edges(a),p=D.end(e,[]);_e.equals(f,p)||(a=D.unhangRange(e,a,{voids:i}))}var[d,v]=X.edges(a),m=D.above(e,{match:fe=>D.isBlock(e,fe),at:d,voids:i}),g=D.above(e,{match:fe=>D.isBlock(e,fe),at:v,voids:i}),y=m&&g&&!M.equals(m[1],g[1]),h=M.equals(d.path,v.path),b=i?null:D.void(e,{at:d,mode:"highest"}),w=i?null:D.void(e,{at:v,mode:"highest"});if(b){var x=D.before(e,d);x&&m&&M.isAncestor(m[1],x.path)&&(d=x)}if(w){var A=D.after(e,v);A&&g&&M.isAncestor(g[1],A.path)&&(v=A)}var S,B=[];for(var P of D.nodes(e,{at:a,voids:i})){var[H,U]=P;S&&M.compare(U,S)===0||(!i&&D.isVoid(e,H)||!M.isCommon(U,d.path)&&!M.isCommon(U,v.path))&&(B.push(P),S=U)}var W=Array.from(B,fe=>{var[,de]=fe;return D.pathRef(e,de)}),C=D.pointRef(e,d),z=D.pointRef(e,v);if(!h&&!b){var k=C.current,[I]=D.leaf(e,k),{path:Y}=k,{offset:$}=d,ee=I.text.slice($);ee.length>0&&e.apply({type:"remove_text",path:Y,offset:$,text:ee})}for(var Q of W){var F=Q.unref();V.removeNodes(e,{at:F,voids:i})}if(!w){var O=z.current,[j]=D.leaf(e,O),{path:N}=O,q=h?d.offset:0,G=j.text.slice(q,v.offset);G.length>0&&e.apply({type:"remove_text",path:N,offset:q,text:G})}!h&&y&&z.current&&C.current&&V.mergeNodes(e,{at:z.current,hanging:!0,voids:i});var te=r?C.unref()||z.unref():z.unref()||C.unref();t.at==null&&te&&V.select(e,te)}}})},insertFragment(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{hanging:n=!1,voids:o=!1}=r,{at:i=e.selection}=r;if(t.length&&i){if(X.isRange(i))if(n||(i=D.unhangRange(e,i)),X.isCollapsed(i))i=i.anchor;else{var[,a]=X.edges(i);if(!o&&D.void(e,{at:a}))return;var u=D.pointRef(e,a);V.delete(e,{at:i}),i=u.unref()}else M.isPath(i)&&(i=D.start(e,i));if(o||!D.void(e,{at:i})){var s=D.above(e,{at:i,match:O=>D.isInline(e,O),mode:"highest",voids:o});if(s){var[,l]=s;D.isEnd(e,i,l)?i=D.after(e,l):D.isStart(e,i,l)&&(i=D.before(e,l))}var c=D.above(e,{match:O=>D.isBlock(e,O),at:i,voids:o}),[,f]=c,p=D.isStart(e,i,f),d=D.isEnd(e,i,f),v=p&&d,m=!p||p&&d,g=!d,[,y]=oe.first({children:t},[]),[,h]=oe.last({children:t},[]),b=[],w=O=>{var[j,N]=O;return N.length!==0&&(!!v||!(m&&M.isAncestor(N,y)&&ge.isElement(j)&&!e.isVoid(j)&&!e.isInline(j))&&!(g&&M.isAncestor(N,h)&&ge.isElement(j)&&!e.isVoid(j)&&!e.isInline(j)))};for(var x of oe.nodes({children:t},{pass:w}))w(x)&&b.push(x);var A=[],S=[],B=[],P=!0,H=!1;for(var[U]of b)ge.isElement(U)&&!e.isInline(U)?(P=!1,H=!0,S.push(U)):P?A.push(U):B.push(U);var[W]=D.nodes(e,{at:i,match:O=>le.isText(O)||D.isInline(e,O),mode:"highest",voids:o}),[,C]=W,z=D.isStart(e,i,C),k=D.isEnd(e,i,C),I=D.pathRef(e,d?M.next(f):f),Y=D.pathRef(e,k?M.next(C):C),$=D.pathRef(e,f);V.splitNodes(e,{at:i,match:O=>H?D.isBlock(e,O):le.isText(O)||D.isInline(e,O),mode:H?"lowest":"highest",voids:o});var ee=D.pathRef(e,!z||z&&k?M.next(C):C);if(V.insertNodes(e,A,{at:ee.current,match:O=>le.isText(O)||D.isInline(e,O),mode:"highest",voids:o}),v&&S.length&&V.delete(e,{at:$.unref(),voids:o}),V.insertNodes(e,S,{at:I.current,match:O=>D.isBlock(e,O),mode:"lowest",voids:o}),V.insertNodes(e,B,{at:Y.current,match:O=>le.isText(O)||D.isInline(e,O),mode:"highest",voids:o}),!r.at){var Q;Q=B.length>0?M.previous(Y.current):S.length>0?M.previous(I.current):M.previous(ee.current);var F=D.end(e,Q);V.select(e,F)}ee.unref(),I.unref(),Y.unref()}}})},insertText(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};D.withoutNormalizing(e,()=>{var{voids:n=!1}=r,{at:o=e.selection}=r;if(o){if(M.isPath(o)&&(o=D.range(e,o)),X.isRange(o))if(X.isCollapsed(o))o=o.anchor;else{var i=X.end(o);if(!n&&D.void(e,{at:i}))return;var a=D.pointRef(e,i);V.delete(e,{at:o,voids:n}),o=a.unref(),V.setSelection(e,{anchor:o,focus:o})}if(n||!D.void(e,{at:o})){var{path:u,offset:s}=o;t.length>0&&e.apply({type:"insert_text",path:u,offset:s,text:t})}}})}};function XA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function lg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?XA(Object(r),!0).forEach(function(n){io(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):XA(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var V=lg(lg(lg(lg({},sK),fK),pK),hK),Db="[object Map]",Sb="[object Set]",gK=/^\[object .+?Constructor\]$/,vK=/^(?:0|[1-9]\d*)$/,mK="[\\ud800-\\udfff]",Ab="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",kb="\\ud83c[\\udffb-\\udfff]",$A="[^\\ud800-\\udfff]",ZA="(?:\\ud83c[\\udde6-\\uddff]){2}",JA="[\\ud800-\\udbff][\\udc00-\\udfff]",QA="(?:"+Ab+"|"+kb+")?",yK="[\\ufe0e\\ufe0f]?"+QA+("(?:\\u200d(?:"+[$A,ZA,JA].join("|")+")[\\ufe0e\\ufe0f]?"+QA+")*"),bK="(?:"+[$A+Ab+"?",Ab,ZA,JA,mK].join("|")+")",wK=RegExp(kb+"(?="+kb+")|"+bK+yK,"g"),EK=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),CK=typeof at=="object"&&at&&at.Object===Object&&at,xK=typeof self=="object"&&self&&self.Object===Object&&self,Za=CK||xK||Function("return this")();function DK(e,t){return(function(r,n){for(var o=-1,i=r?r.length:0,a=Array(i);++o<i;)a[o]=n(r[o],o,r);return a})(t,function(r){return e[r]})}function SK(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}function AK(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}function kK(e){return(function(t){return EK.test(t)})(e)?(function(t){return t.match(wK)||[]})(e):(function(t){return t.split("")})(e)}var e7,t7,OK=Function.prototype,cg=Object.prototype,Ob=Za["__core-js_shared__"],r7=(function(){var e=/[^.]+$/.exec(Ob&&Ob.keys&&Ob.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})(),n7=OK.toString,fg=cg.hasOwnProperty,Kc=cg.toString,BK=RegExp("^"+n7.call(fg).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),o7=Za.Symbol,Bb=o7?o7.iterator:void 0,FK=cg.propertyIsEnumerable,_K=(e7=Object.keys,t7=Object,function(e){return e7(t7(e))}),Fb=Yc(Za,"DataView"),_b=Yc(Za,"Map"),Tb=Yc(Za,"Promise"),Pb=Yc(Za,"Set"),jb=Yc(Za,"WeakMap"),TK=Qa(Fb),PK=Qa(_b),jK=Qa(Tb),NK=Qa(Pb),RK=Qa(jb);function IK(e,t){var r=i7(e)||(function(a){return(function(u){return s7(u)&&Nb(u)})(a)&&fg.call(a,"callee")&&(!FK.call(a,"callee")||Kc.call(a)=="[object Arguments]")})(e)?(function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l})(e.length,String):[],n=r.length,o=!!n;for(var i in e)!fg.call(e,i)||o&&(i=="length"||zK(i,n))||r.push(i);return r}function LK(e){if(!u7(e)||(function(r){return!!r7&&r7 in r})(e))return!1;var t=a7(e)||(function(r){var n=!1;if(r!=null&&typeof r.toString!="function")try{n=!!(r+"")}catch{}return n})(e)?BK:gK;return t.test(Qa(e))}function MK(e){if(r=(t=e)&&t.constructor,n=typeof r=="function"&&r.prototype||cg,t!==n)return _K(e);var t,r,n,o=[];for(var i in Object(e))fg.call(e,i)&&i!="constructor"&&o.push(i);return o}function Yc(e,t){var r=(function(n,o){return n?.[o]})(e,t);return LK(r)?r:void 0}var Ja=function(e){return Kc.call(e)};function zK(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||vK.test(e))&&e>-1&&e%1==0&&e<t}function Qa(e){if(e!=null){try{return n7.call(e)}catch{}try{return e+""}catch{}}return""}(Fb&&Ja(new Fb(new ArrayBuffer(1)))!="[object DataView]"||_b&&Ja(new _b)!=Db||Tb&&Ja(Tb.resolve())!="[object Promise]"||Pb&&Ja(new Pb)!=Sb||jb&&Ja(new jb)!="[object WeakMap]")&&(Ja=function(e){var t=Kc.call(e),r=t=="[object Object]"?e.constructor:void 0,n=r?Qa(r):void 0;if(n)switch(n){case TK:return"[object DataView]";case PK:return Db;case jK:return"[object Promise]";case NK:return Sb;case RK:return"[object WeakMap]"}return t});var i7=Array.isArray;function Nb(e){return e!=null&&(function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991})(e.length)&&!a7(e)}function a7(e){var t=u7(e)?Kc.call(e):"";return t=="[object Function]"||t=="[object GeneratorFunction]"}function u7(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function s7(e){return!!e&&typeof e=="object"}function VK(e){return e?DK(e,(function(t){return Nb(t)?IK(t):MK(t)})(e)):[]}var l7=function(e){if(!e)return[];if(Nb(e))return(function(r){return typeof r=="string"||!i7(r)&&s7(r)&&Kc.call(r)=="[object String]"})(e)?kK(e):(function(r,n){var o=-1,i=r.length;for(n||(n=Array(i));++o<i;)n[o]=r[o];return n})(e);if(Bb&&e[Bb])return(function(r){for(var n,o=[];!(n=r.next()).done;)o.push(n.value);return o})(e[Bb]());var t=Ja(e);return(t==Db?SK:t==Sb?AK:VK)(e)};function c7(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function Rb(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach(function(r){e[r]===void 0?e[r]=t[r]:c7(t[r])&&c7(e[r])&&Object.keys(t[r]).length>0&&Rb(e[r],t[r])})}var f7={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Xc(){var e=typeof document<"u"?document:{};return Rb(e,f7),e}var HK={document:f7,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}},requestAnimationFrame:function(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame:function(e){typeof setTimeout<"u"&&clearTimeout(e)}};function eu(){var e=typeof window<"u"?window:{};return Rb(e,HK),e}function Ib(e){return Ib=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Ib(e)}function dg(e,t){return dg=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},dg(e,t)}function UK(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function Lb(e,t,r){return Lb=UK()?Reflect.construct:function(n,o,i){var a=[null];a.push.apply(a,o);var u=new(Function.bind.apply(n,a));return i&&dg(u,i.prototype),u},Lb.apply(null,arguments)}function Mb(e){var t=typeof Map=="function"?new Map:void 0;return Mb=function(r){if(r===null||!(function(o){return Function.toString.call(o).indexOf("[native code]")!==-1})(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(t!==void 0){if(t.has(r))return t.get(r);t.set(r,n)}function n(){return Lb(r,arguments,Ib(this).constructor)}return n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),dg(n,r)},Mb(e)}var Si=(function(e){var t,r;function n(o){var i,a,u;return i=e.call.apply(e,[this].concat(o))||this,a=(function(s){if(s===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return s})(i),u=a.__proto__,Object.defineProperty(a,"__proto__",{get:function(){return u},set:function(s){u.__proto__=s}}),i}return r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r,n})(Mb(Array));function pg(e){e===void 0&&(e=[]);var t=[];return e.forEach(function(r){Array.isArray(r)?t.push.apply(t,pg(r)):t.push(r)}),t}function d7(e,t){return Array.prototype.filter.call(e,t)}function T(e,t){var r=eu(),n=Xc(),o=[];if(!t&&e instanceof Si)return e;if(!e)return new Si(o);if(typeof e=="string"){var i=e.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){var a="div";i.indexOf("<li")===0&&(a="ul"),i.indexOf("<tr")===0&&(a="tbody"),i.indexOf("<td")!==0&&i.indexOf("<th")!==0||(a="tr"),i.indexOf("<tbody")===0&&(a="table"),i.indexOf("<option")===0&&(a="select");var u=n.createElement(a);u.innerHTML=i;for(var s=0;s<u.childNodes.length;s+=1)o.push(u.childNodes[s])}else o=(function(l,c){if(typeof l!="string")return[l];for(var f=[],p=c.querySelectorAll(l),d=0;d<p.length;d+=1)f.push(p[d]);return f})(e.trim(),t||n)}else if(e.nodeType||e===r||e===n)o.push(e);else if(Array.isArray(e)){if(e instanceof Si)return e;o=e}return new Si((function(l){for(var c=[],f=0;f<l.length;f+=1)c.indexOf(l[f])===-1&&c.push(l[f]);return c})(o))}function ks(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=pg(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).add.apply(i,n)}),this}function Os(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=pg(t.map(function(o){return o.split(" ")}));return this.forEach(function(o){var i;(i=o.classList).remove.apply(i,n)}),this}function Bs(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=pg(t.map(function(o){return o.split(" ")}));return d7(this,function(o){return n.filter(function(i){return o.classList.contains(i)}).length>0}).length>0}function hn(e,t){if(arguments.length===1&&typeof e=="string")return this[0]?this[0].getAttribute(e):void 0;for(var r=0;r<this.length;r+=1)if(arguments.length===2)this[r].setAttribute(e,t);else for(var n in e)this[r][n]=e[n],this[r].setAttribute(n,e[n]);return this}function hg(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Fs(){var e=this[0];if(e){var t,r={};if(e.dataset)for(var n in e.dataset)r[n]=e.dataset[n];else for(var o=0;o<e.attributes.length;o+=1){var i=e.attributes[o];i.name.indexOf("data-")>=0&&(r[t=i.name.split("data-")[1],t.toLowerCase().replace(/-(.)/g,function(u,s){return s.toUpperCase()})]=i.value)}for(var a in r)r[a]==="false"?r[a]=!1:r[a]==="true"?r[a]=!0:parseFloat(r[a])===1*r[a]&&(r[a]*=1);return r}}function ao(e){if(e===void 0){var t=this[0];if(!t)return;if(t.multiple&&t.nodeName.toLowerCase()==="select"){for(var r=[],n=0;n<t.selectedOptions.length;n+=1)r.push(t.selectedOptions[n].value);return r}return t.value}for(var o=0;o<this.length;o+=1){var i=this[o];if(Array.isArray(e)&&i.multiple&&i.nodeName.toLowerCase()==="select")for(var a=0;a<i.options.length;a+=1)i.options[a].selected=e.indexOf(i.options[a].value)>=0;else i.value=e}return this}function uo(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],i=t[2],a=t[3];function u(m){var g=m.target;if(g){var y=m.target.dom7EventData||[];if(y.indexOf(m)<0&&y.unshift(m),T(g).is(o))i.apply(g,y);else for(var h=T(g).parents(),b=0;b<h.length;b+=1)T(h[b]).is(o)&&i.apply(h[b],y)}}function s(m){var g=m&&m.target&&m.target.dom7EventData||[];g.indexOf(m)<0&&g.unshift(m),i.apply(this,g)}typeof t[1]=="function"&&(n=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var l,c=n.split(" "),f=0;f<this.length;f+=1){var p=this[f];if(o)for(l=0;l<c.length;l+=1){var d=c[l];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[d]||(p.dom7LiveListeners[d]=[]),p.dom7LiveListeners[d].push({listener:i,proxyListener:u}),p.addEventListener(d,u,a)}else for(l=0;l<c.length;l+=1){var v=c[l];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[v]||(p.dom7Listeners[v]=[]),p.dom7Listeners[v].push({listener:i,proxyListener:s}),p.addEventListener(v,s,a)}}return this}function p7(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],i=t[2],a=t[3];typeof t[1]=="function"&&(n=t[0],i=t[1],a=t[2],o=void 0),a||(a=!1);for(var u=n.split(" "),s=0;s<u.length;s+=1)for(var l=u[s],c=0;c<this.length;c+=1){var f=this[c],p=void 0;if(!o&&f.dom7Listeners?p=f.dom7Listeners[l]:o&&f.dom7LiveListeners&&(p=f.dom7LiveListeners[l]),p&&p.length)for(var d=p.length-1;d>=0;d-=1){var v=p[d];i&&v.listener===i||i&&v.listener&&v.listener.dom7proxy&&v.listener.dom7proxy===i?(f.removeEventListener(l,v.proxyListener,a),p.splice(d,1)):i||(f.removeEventListener(l,v.proxyListener,a),p.splice(d,1))}}return this}function gg(){var e=eu();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css("width")):null}function vg(){var e=eu();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css("height")):null}function h7(){if(this.length>0){var e=eu(),t=Xc(),r=this[0],n=r.getBoundingClientRect(),o=t.body,i=r.clientTop||o.clientTop||0,a=r.clientLeft||o.clientLeft||0,u=r===e?e.scrollY:r.scrollTop,s=r===e?e.scrollX:r.scrollLeft;return{top:n.top+u-i,left:n.left+s-a}}return null}function _s(){for(var e=0;e<this.length;e+=1)this[e].style.display="none";return this}function mg(){for(var e=eu(),t=0;t<this.length;t+=1){var r=this[t];r.style.display==="none"&&(r.style.display=""),e.getComputedStyle(r,null).getPropertyValue("display")==="none"&&(r.style.display="block")}return this}function yg(e,t){var r,n=eu();if(arguments.length===1){if(typeof e!="string"){for(r=0;r<this.length;r+=1)for(var o in e)this[r].style[o]=e[o];return this}if(this[0])return n.getComputedStyle(this[0],null).getPropertyValue(e)}if(arguments.length===2&&typeof e=="string"){for(r=0;r<this.length;r+=1)this[r].style[e]=t;return this}return this}function bg(e){return e?(this.forEach(function(t,r){e.apply(t,[t,r])}),this):this}function g7(e){return T(d7(this,e))}function Ai(e){if(e===void 0)return this[0]?this[0].innerHTML:null;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this}function wg(e){if(e===void 0)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this}function v7(e){var t,r,n=eu(),o=Xc(),i=this[0];if(!i||e===void 0)return!1;if(typeof e=="string"){if(i.matches)return i.matches(e);if(i.webkitMatchesSelector)return i.webkitMatchesSelector(e);if(i.msMatchesSelector)return i.msMatchesSelector(e);for(t=T(e),r=0;r<t.length;r+=1)if(t[r]===i)return!0;return!1}if(e===o)return i===o;if(e===n)return i===n;if(e.nodeType||e instanceof Si){for(t=e.nodeType?[e]:e,r=0;r<t.length;r+=1)if(t[r]===i)return!0;return!1}return!1}function gn(){for(var e,t=Xc(),r=0;r<arguments.length;r+=1){e=r<0||arguments.length<=r?void 0:arguments[r];for(var n=0;n<this.length;n+=1)if(typeof e=="string"){var o=t.createElement("div");for(o.innerHTML=e;o.firstChild;)this[n].appendChild(o.firstChild)}else if(e instanceof Si)for(var i=0;i<e.length;i+=1)this[n].appendChild(e[i]);else this[n].appendChild(e)}return this}function m7(e){var t,r,n=Xc();for(t=0;t<this.length;t+=1)if(typeof e=="string"){var o=n.createElement("div");for(o.innerHTML=e,r=o.childNodes.length-1;r>=0;r-=1)this[t].insertBefore(o.childNodes[r],this[t].childNodes[0])}else if(e instanceof Si)for(r=0;r<e.length;r+=1)this[t].insertBefore(e[r],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this}function Ts(e){for(var t=[],r=0;r<this.length;r+=1)this[r].parentNode!==null&&(e?T(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode));return T(t)}function Eg(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].parentNode;n;)e?T(n).is(e)&&t.push(n):t.push(n),n=n.parentNode;return T(t)}function Ps(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].querySelectorAll(e),o=0;o<n.length;o+=1)t.push(n[o]);return T(t)}function js(e){for(var t=[],r=0;r<this.length;r+=1)for(var n=this[r].children,o=0;o<n.length;o+=1)e&&!T(n[o]).is(e)||t.push(n[o]);return T(t)}function Ns(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function Rs(){for(var e=0;e<this.length;e+=1){var t=this[e];if(t.nodeType===1){for(var r=0;r<t.childNodes.length;r+=1)t.childNodes[r].parentNode&&t.childNodes[r].parentNode.removeChild(t.childNodes[r]);t.textContent=""}}return this}T.fn=Si.prototype;var qK="resize scroll".split(" ");function y7(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r[0]===void 0){for(var o=0;o<this.length;o+=1)qK.indexOf(e)<0&&(e in this[o]?this[o][e]():T(this[o]).trigger(e));return this}return this.on.apply(this,[e].concat(r))}}var b7=y7("click"),ki=y7("focus"),WK="[object GeneratorFunction]",GK=/^(?:0|[1-9]\d*)$/;function KK(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}var Cg=Object.prototype,zb=Cg.hasOwnProperty,w7=Cg.toString,YK=Cg.propertyIsEnumerable,XK=(function(e,t){return function(r){return e(t(r))}})(Object.keys,Object);function $K(e,t){var r=C7(e)||(function(a){return(function(u){return(function(s){return!!s&&typeof s=="object"})(u)&&Vb(u)})(a)&&zb.call(a,"callee")&&(!YK.call(a,"callee")||w7.call(a)=="[object Arguments]")})(e)?(function(a,u){for(var s=-1,l=Array(a);++s<a;)l[s]=u(s);return l})(e.length,String):[],n=r.length,o=!!n;for(var i in e)!zb.call(e,i)||o&&(i=="length"||eY(i,n))||r.push(i);return r}var E7,ZK=(E7=function(e,t){return e&&JK(e,t,tY)},function(e,t){if(e==null)return e;if(!Vb(e))return E7(e,t);for(var r=e.length,n=-1,o=Object(e);++n<r&&t(o[n],n,o)!==!1;);return e}),JK=(function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),u=a.length;u--;){var s=a[++o];if(r(i[s],s,i)===!1)break}return t}})();function QK(e){if(r=(t=e)&&t.constructor,n=typeof r=="function"&&r.prototype||Cg,t!==n)return XK(e);var t,r,n,o=[];for(var i in Object(e))zb.call(e,i)&&i!="constructor"&&o.push(i);return o}function eY(e,t){return!!(t=t??9007199254740991)&&(typeof e=="number"||GK.test(e))&&e>-1&&e%1==0&&e<t}var C7=Array.isArray;function Vb(e){return e!=null&&(function(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=9007199254740991})(e.length)&&!(function(t){var r=(function(n){var o=typeof n;return!!n&&(o=="object"||o=="function")})(t)?w7.call(t):"";return r=="[object Function]"||r==WK})(e)}function tY(e){return Vb(e)?$K(e):QK(e)}function rY(e){return e}var Hb=function(e,t){return(C7(e)?KK:ZK)(e,typeof t=="function"?t:rY)};let x7=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let n=63&r[e];t+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return t};var nY=/^\s+|\s+$/g,oY=/^[-+]0x[0-9a-f]+$/i,iY=/^0b[01]+$/i,aY=/^0o[0-7]+$/i,uY=parseInt,sY=typeof at=="object"&&at&&at.Object===Object&&at,lY=typeof self=="object"&&self&&self.Object===Object&&self,cY=sY||lY||Function("return this")(),fY=Object.prototype.toString,dY=Math.max,pY=Math.min,Ub=function(){return cY.Date.now()};function hY(e,t,r){var n,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError("Expected a function");function d(b){var w=n,x=o;return n=o=void 0,l=b,a=e.apply(x,w)}function v(b){return l=b,u=setTimeout(g,t),c?d(b):a}function m(b){var w=b-s;return s===void 0||w>=t||w<0||f&&b-l>=i}function g(){var b=Ub();if(m(b))return y(b);u=setTimeout(g,(function(w){var x=t-(w-s);return f?pY(x,i-(w-l)):x})(b))}function y(b){return u=void 0,p&&n?d(b):(n=o=void 0,a)}function h(){var b=Ub(),w=m(b);if(n=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(g,t),d(s)}return u===void 0&&(u=setTimeout(g,t)),a}return t=D7(t)||0,xg(r)&&(c=!!r.leading,i=(f="maxWait"in r)?dY(D7(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},h.flush=function(){return u===void 0?a:y(Ub())},h}function xg(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function D7(e){if(typeof e=="number")return e;if((function(n){return typeof n=="symbol"||(function(o){return!!o&&typeof o=="object"})(n)&&fY.call(n)=="[object Symbol]"})(e))return NaN;if(xg(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=xg(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(nY,"");var r=iY.test(e);return r||aY.test(e)?uY(e.slice(2),r?2:8):oY.test(e)?NaN:+e}var tu=function(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError("Expected a function");return xg(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),hY(e,t,{leading:n,maxWait:t,trailing:o})};const gY={createElement:function(e,t){return document.createElement(e,t)},createElementNS:function(e,t,r){return document.createElementNS(e,t,r)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,r){e.insertBefore(t,r)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},getTextContent:function(e){return e.textContent},isElement:function(e){return e.nodeType===1},isText:function(e){return e.nodeType===3},isComment:function(e){return e.nodeType===8}};function $c(e,t,r,n,o){return{sel:e,data:t,children:r,text:n,elm:o,key:t===void 0?void 0:t.key}}const qb=Array.isArray;function Dg(e){return typeof e=="string"||typeof e=="number"||e instanceof String||e instanceof Number}function Wb(e){return e===void 0}function en(e){return e!==void 0}const S7=$c("",{},[],void 0,void 0);function Zc(e,t){var r,n;const o=e.key===t.key,i=((r=e.data)===null||r===void 0?void 0:r.is)===((n=t.data)===null||n===void 0?void 0:n.is);return e.sel===t.sel&&o&&i}function vY(e,t,r){var n;const o={};for(let i=t;i<=r;++i){const a=(n=e[i])===null||n===void 0?void 0:n.key;a!==void 0&&(o[a]=i)}return o}const mY=["create","update","remove","destroy","pre","post"];function yY(e,t){const r={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},n=gY;for(const f of mY)for(const p of e){const d=p[f];d!==void 0&&r[f].push(d)}function o(f){const p=f.id?"#"+f.id:"",d=f.getAttribute("class"),v=d?"."+d.split(" ").join("."):"";return $c(n.tagName(f).toLowerCase()+p+v,{},[],void 0,f)}function i(f,p){return function(){if(--p==0){const d=n.parentNode(f);n.removeChild(d,f)}}}function a(f,p){var d,v;let m,g=f.data;if(g!==void 0){const b=(d=g.hook)===null||d===void 0?void 0:d.init;en(b)&&(b(f),g=f.data)}const y=f.children,h=f.sel;if(h==="!")Wb(f.text)&&(f.text=""),f.elm=n.createComment(f.text);else if(h!==void 0){const b=h.indexOf("#"),w=h.indexOf(".",b),x=b>0?b:h.length,A=w>0?w:h.length,S=b!==-1||w!==-1?h.slice(0,Math.min(x,A)):h,B=f.elm=en(g)&&en(m=g.ns)?n.createElementNS(m,S,g):n.createElement(S,g);for(x<A&&B.setAttribute("id",h.slice(x+1,A)),w>0&&B.setAttribute("class",h.slice(A+1).replace(/\./g," ")),m=0;m<r.create.length;++m)r.create[m](S7,f);if(qb(y))for(m=0;m<y.length;++m){const H=y[m];H!=null&&n.appendChild(B,a(H,p))}else Dg(f.text)&&n.appendChild(B,n.createTextNode(f.text));const P=f.data.hook;en(P)&&((v=P.create)===null||v===void 0||v.call(P,S7,f),P.insert&&p.push(f))}else f.elm=n.createTextNode(f.text);return f.elm}function u(f,p,d,v,m,g){for(;v<=m;++v){const y=d[v];y!=null&&n.insertBefore(f,a(y,g),p)}}function s(f){var p,d;const v=f.data;if(v!==void 0){(d=(p=v?.hook)===null||p===void 0?void 0:p.destroy)===null||d===void 0||d.call(p,f);for(let m=0;m<r.destroy.length;++m)r.destroy[m](f);if(f.children!==void 0)for(let m=0;m<f.children.length;++m){const g=f.children[m];g!=null&&typeof g!="string"&&s(g)}}}function l(f,p,d,v){for(var m,g;d<=v;++d){let y,h;const b=p[d];if(b!=null)if(en(b.sel)){s(b),y=r.remove.length+1,h=i(b.elm,y);for(let x=0;x<r.remove.length;++x)r.remove[x](b,h);const w=(g=(m=b?.data)===null||m===void 0?void 0:m.hook)===null||g===void 0?void 0:g.remove;en(w)?w(b,h):h()}else n.removeChild(f,b.elm)}}function c(f,p,d){var v,m,g,y,h;const b=(v=p.data)===null||v===void 0?void 0:v.hook;(m=b?.prepatch)===null||m===void 0||m.call(b,f,p);const w=p.elm=f.elm,x=f.children,A=p.children;if(f!==p){if(p.data!==void 0){for(let S=0;S<r.update.length;++S)r.update[S](f,p);(y=(g=p.data.hook)===null||g===void 0?void 0:g.update)===null||y===void 0||y.call(g,f,p)}Wb(p.text)?en(x)&&en(A)?x!==A&&(function(S,B,P,H){let U,W,C,z,k=0,I=0,Y=B.length-1,$=B[0],ee=B[Y],Q=P.length-1,F=P[0],O=P[Q];for(;k<=Y&&I<=Q;)$==null?$=B[++k]:ee==null?ee=B[--Y]:F==null?F=P[++I]:O==null?O=P[--Q]:Zc($,F)?(c($,F,H),$=B[++k],F=P[++I]):Zc(ee,O)?(c(ee,O,H),ee=B[--Y],O=P[--Q]):Zc($,O)?(c($,O,H),n.insertBefore(S,$.elm,n.nextSibling(ee.elm)),$=B[++k],O=P[--Q]):Zc(ee,F)?(c(ee,F,H),n.insertBefore(S,ee.elm,$.elm),ee=B[--Y],F=P[++I]):(U===void 0&&(U=vY(B,k,Y)),W=U[F.key],Wb(W)?n.insertBefore(S,a(F,H),$.elm):(C=B[W],C.sel!==F.sel?n.insertBefore(S,a(F,H),$.elm):(c(C,F,H),B[W]=void 0,n.insertBefore(S,C.elm,$.elm))),F=P[++I]);(k<=Y||I<=Q)&&(k>Y?(z=P[Q+1]==null?null:P[Q+1].elm,u(S,z,P,I,Q,H)):l(S,B,k,Y))})(w,x,A,d):en(A)?(en(f.text)&&n.setTextContent(w,""),u(w,null,A,0,A.length-1,d)):en(x)?l(w,x,0,x.length-1):en(f.text)&&n.setTextContent(w,""):f.text!==p.text&&(en(x)&&l(w,x,0,x.length-1),n.setTextContent(w,p.text)),(h=b?.postpatch)===null||h===void 0||h.call(b,f,p)}}return function(f,p){let d,v,m;const g=[];for(d=0;d<r.pre.length;++d)r.pre[d]();for((function(y){return y.sel!==void 0})(f)||(f=o(f)),Zc(f,p)?c(f,p,g):(v=f.elm,m=n.parentNode(v),a(p,g),m!==null&&(n.insertBefore(m,p.elm,n.nextSibling(v)),l(m,[f],0,0))),d=0;d<g.length;++d)g[d].data.hook.insert(g[d]);for(d=0;d<r.post.length;++d)r.post[d]();return p}}function A7(e,t,r){if(e.ns="http://www.w3.org/2000/svg",r!=="foreignObject"&&t!==void 0)for(let n=0;n<t.length;++n){const o=t[n].data;o!==void 0&&A7(o,t[n].children,t[n].sel)}}function Is(e,t,r){let n,o,i,a={};if(r!==void 0?(t!==null&&(a=t),qb(r)?n=r:Dg(r)?o=r.toString():r&&r.sel&&(n=[r])):t!=null&&(qb(t)?n=t:Dg(t)?o=t.toString():t&&t.sel?n=[t]:a=t),n!==void 0)for(i=0;i<n.length;++i)Dg(n[i])&&(n[i]=$c(void 0,void 0,void 0,n[i],void 0));return e[0]!=="s"||e[1]!=="v"||e[2]!=="g"||e.length!==3&&e[3]!=="."&&e[3]!=="#"||A7(a,n,e),$c(e,a,n,o,void 0)}function k7(e,t){let r;const n=t.elm;let o=e.data.attrs,i=t.data.attrs;if((o||i)&&o!==i){for(r in o=o||{},i=i||{},i){const a=i[r];o[r]!==a&&(a===!0?n.setAttribute(r,""):a===!1?n.removeAttribute(r):r.charCodeAt(0)!==120?n.setAttribute(r,a):r.charCodeAt(3)===58?n.setAttributeNS("http://www.w3.org/XML/1998/namespace",r,a):r.charCodeAt(5)===58?n.setAttributeNS("http://www.w3.org/1999/xlink",r,a):n.setAttribute(r,a))}for(r in o)r in i||n.removeAttribute(r)}}const bY={create:k7,update:k7};function O7(e,t){let r,n;const o=t.elm;let i=e.data.class,a=t.data.class;if((i||a)&&i!==a){for(n in i=i||{},a=a||{},i)i[n]&&!Object.prototype.hasOwnProperty.call(a,n)&&o.classList.remove(n);for(n in a)r=a[n],r!==i[n]&&o.classList[r?"add":"remove"](n)}}const wY={create:O7,update:O7},B7=/[A-Z]/g;function F7(e,t){const r=t.elm;let n,o=e.data.dataset,i=t.data.dataset;if(!o&&!i||o===i)return;o=o||{},i=i||{};const a=r.dataset;for(n in o)i[n]||(a?n in a&&delete a[n]:r.removeAttribute("data-"+n.replace(B7,"-$&").toLowerCase()));for(n in i)o[n]!==i[n]&&(a?a[n]=i[n]:r.setAttribute("data-"+n.replace(B7,"-$&").toLowerCase(),i[n]))}const EY={create:F7,update:F7};function _7(e,t,r){if(typeof e=="function")e.call(t,r,t);else if(typeof e=="object")for(let n=0;n<e.length;n++)_7(e[n],t,r)}function CY(e,t){const r=e.type,n=t.data.on;n&&n[r]&&_7(n[r],t,e)}function Gb(e,t){const r=e.data.on,n=e.listener,o=e.elm,i=t&&t.data.on,a=t&&t.elm;let u;if(r!==i){if(r&&n)if(i)for(u in r)i[u]||o.removeEventListener(u,n,!1);else for(u in r)o.removeEventListener(u,n,!1);if(i){const s=t.listener=e.listener||function l(c){CY(c,l.vnode)};if(s.vnode=t,r)for(u in i)r[u]||a.addEventListener(u,s,!1);else for(u in i)a.addEventListener(u,s,!1)}}}const xY={create:Gb,update:Gb,destroy:Gb};function T7(e,t){let r,n,o;const i=t.elm;let a=e.data.props,u=t.data.props;if((a||u)&&a!==u)for(r in a=a||{},u=u||{},u)n=u[r],o=a[r],o===n||r==="value"&&i[r]===n||(i[r]=n)}const DY={create:T7,update:T7},P7=typeof window<"u"&&window.requestAnimationFrame.bind(window)||setTimeout;let Kb=!1;function SY(e,t,r){(function(n){P7(function(){P7(n)})})(function(){e[t]=r})}function j7(e,t){let r,n;const o=t.elm;let i=e.data.style,a=t.data.style;if(!i&&!a||i===a)return;i=i||{},a=a||{};const u="delayed"in i;for(n in i)a[n]||(n[0]==="-"&&n[1]==="-"?o.style.removeProperty(n):o.style[n]="");for(n in a)if(r=a[n],n==="delayed"&&a.delayed)for(const s in a.delayed)r=a.delayed[s],u&&r===i.delayed[s]||SY(o.style,s,r);else n!=="remove"&&r!==i[n]&&(n[0]==="-"&&n[1]==="-"?o.style.setProperty(n,r):o.style[n]=r)}const AY={pre:function(){Kb=!1},create:j7,update:j7,destroy:function(e){let t,r;const n=e.elm,o=e.data.style;if(o&&(t=o.destroy))for(r in t)n.style[r]=t[r]},remove:function(e,t){const r=e.data.style;if(!r||!r.remove)return void t();let n;Kb||(e.elm.offsetLeft,Kb=!0);const o=e.elm;let i=0;const a=r.remove;let u=0;const s=[];for(n in a)s.push(n),o.style[n]=a[n];const l=getComputedStyle(o)["transition-property"].split(", ");for(;i<l.length;++i)s.indexOf(l[i])!==-1&&u++;o.addEventListener("transitionend",function(c){c.target===o&&--u,u===0&&t()})}};function N7(e,t){for(const r of e)r!=null&&r!==!1&&r!==""&&(Array.isArray(r)?N7(r,t):typeof r=="string"||typeof r=="number"||typeof r=="boolean"?t.push($c(void 0,void 0,void 0,String(r),void 0)):t.push(r));return t}function Ee(e,t,...r){const n=N7(r,[]);return typeof e=="function"?e(t,n):n.length===1&&!n[0].sel&&n[0].text?Is(e,t,n[0].text):Is(e,t,n)}Ee||(Ee={});var kY=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,OY=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,R7="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",BY="[\\ud800-\\udfff]",I7="["+R7+"]",Sg="[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]",L7="\\d+",FY="[\\u2700-\\u27bf]",M7="[a-z\\xdf-\\xf6\\xf8-\\xff]",z7="[^\\ud800-\\udfff"+R7+L7+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",Yb="\\ud83c[\\udffb-\\udfff]",V7="[^\\ud800-\\udfff]",Xb="(?:\\ud83c[\\udde6-\\uddff]){2}",$b="[\\ud800-\\udbff][\\udc00-\\udfff]",Ls="[A-Z\\xc0-\\xd6\\xd8-\\xde]",H7="(?:"+M7+"|"+z7+")",_Y="(?:"+Ls+"|"+z7+")",U7="(?:"+Sg+"|"+Yb+")?",q7="[\\ufe0e\\ufe0f]?"+U7+("(?:\\u200d(?:"+[V7,Xb,$b].join("|")+")[\\ufe0e\\ufe0f]?"+U7+")*"),TY="(?:"+[FY,Xb,$b].join("|")+")"+q7,PY="(?:"+[V7+Sg+"?",Sg,Xb,$b,BY].join("|")+")",jY=RegExp("['’]","g"),NY=RegExp(Sg,"g"),RY=RegExp(Yb+"(?="+Yb+")|"+PY+q7,"g"),IY=RegExp([Ls+"?"+M7+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[I7,Ls,"$"].join("|")+")",_Y+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[I7,Ls+H7,"$"].join("|")+")",Ls+"?"+H7+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Ls+"+(?:['’](?:D|LL|M|RE|S|T|VE))?",L7,TY].join("|"),"g"),LY=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]"),MY=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zY=typeof at=="object"&&at&&at.Object===Object&&at,VY=typeof self=="object"&&self&&self.Object===Object&&self,HY=zY||VY||Function("return this")(),Zb,UY=(Zb={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"ss"},function(e){return Zb?.[e]});function W7(e){return LY.test(e)}function qY(e){return W7(e)?(function(t){return t.match(RY)||[]})(e):(function(t){return t.split("")})(e)}var WY=Object.prototype.toString,G7=HY.Symbol,K7=G7?G7.prototype:void 0,Y7=K7?K7.toString:void 0;function GY(e){if(typeof e=="string")return e;if((function(r){return typeof r=="symbol"||(function(n){return!!n&&typeof n=="object"})(r)&&WY.call(r)=="[object Symbol]"})(e))return Y7?Y7.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function KY(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:(function(o,i,a){var u=-1,s=o.length;i<0&&(i=-i>s?0:s+i),(a=a>s?s:a)<0&&(a+=s),s=i>a?0:a-i>>>0,i>>>=0;for(var l=Array(s);++u<s;)l[u]=o[u+i];return l})(e,t,r)}function Ag(e){return e==null?"":GY(e)}for(var X7,YY=(X7=function(e,t,r){return t=t.toLowerCase(),e+(r?XY(Ag(t).toLowerCase()):t)},function(e){return(function(t,r,n,o){var i=-1,a=t?t.length:0;for(o;++i<a;)n=r(n,t[i],i,t);return n})((function(t,r,n){return t=Ag(t),(r=r)===void 0?(function(o){return MY.test(o)})(t)?(function(o){return o.match(IY)||[]})(t):(function(o){return o.match(kY)||[]})(t):t.match(r)||[]})((function(t){return(t=Ag(t))&&t.replace(OY,UY).replace(NY,"")})(e).replace(jY,"")),X7,"")}),$7,XY=($7="toUpperCase",function(e){var t=W7(e=Ag(e))?qY(e):void 0,r=t?t[0]:e.charAt(0),n=t?KY(t,1).join(""):e.slice(1);return r[$7]()+n}),$Y=YY,ZY=typeof window<"u"&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Jb={alt:"altKey",control:"ctrlKey",meta:"metaKey",shift:"shiftKey"},Z7={add:"+",break:"pause",cmd:"meta",command:"meta",ctl:"control",ctrl:"control",del:"delete",down:"arrowdown",esc:"escape",ins:"insert",left:"arrowleft",mod:ZY?"meta":"control",opt:"alt",option:"alt",return:"enter",right:"arrowright",space:" ",spacebar:" ",up:"arrowup",win:"meta",windows:"meta"},Qb={backspace:8,tab:9,enter:13,shift:16,control:17,alt:18,pause:19,capslock:20,escape:27," ":32,pageup:33,pagedown:34,end:35,home:36,arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,insert:45,delete:46,meta:91,numlock:144,scrolllock:145,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},kg=1;kg<20;kg++)Qb["f"+kg]=111+kg;function J7(e,t,r){t&&!("byKey"in t)&&(r=t,t=null),Array.isArray(e)||(e=[e]);var n=e.map(function(i){return(function(a,u){var s=u&&u.byKey,l={},c=(a=a.replace("++","+add")).split("+"),f=c.length;for(var p in Jb)l[Jb[p]]=!1;var d=!0,v=!1,m=void 0;try{for(var g,y=c[Symbol.iterator]();!(d=(g=y.next()).done);d=!0){var h=g.value,b=h.endsWith("?")&&h.length>1;b&&(h=h.slice(0,-1));var w=Q7(h),x=Jb[w];if(h.length>1&&!x&&!Z7[h]&&!Qb[w])throw new TypeError('Unknown modifier: "'+h+'"');f!==1&&x||(s?l.key=w:l.which=JY(h)),x&&(l[x]=!b||null)}}catch(A){v=!0,m=A}finally{try{!d&&y.return&&y.return()}finally{if(v)throw m}}return l})(i,t)}),o=function(i){return n.some(function(a){return(function(u,s){for(var l in u){var c=u[l],f=void 0;if(c!=null&&((f=l==="key"&&s.key!=null?s.key.toLowerCase():l==="which"?c===91&&s.which===93?91:s.which:s[l])!=null||c!==!1)&&f!==c)return!1}return!0})(a,i)})};return r==null?o:o(r)}function JY(e){return e=Q7(e),Qb[e]||e.toUpperCase().charCodeAt(0)}function Q7(e){return e=e.toLowerCase(),e=Z7[e]||e}var QY=J7,e2=function(e,t){return J7(e,{byKey:!0},t)},eX=/^\s+|\s+$/g,tX=/^[-+]0x[0-9a-f]+$/i,rX=/^0b[01]+$/i,nX=/^0o[0-7]+$/i,oX=parseInt,iX=typeof at=="object"&&at&&at.Object===Object&&at,aX=typeof self=="object"&&self&&self.Object===Object&&self,uX=iX||aX||Function("return this")(),sX=Object.prototype.toString,lX=Math.max,cX=Math.min,t2=function(){return uX.Date.now()};function r2(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function e9(e){if(typeof e=="number")return e;if((function(n){return typeof n=="symbol"||(function(o){return!!o&&typeof o=="object"})(n)&&sX.call(n)=="[object Symbol]"})(e))return NaN;if(r2(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=r2(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(eX,"");var r=rX.test(e);return r||nX.test(e)?oX(e.slice(2),r?2:8):tX.test(e)?NaN:+e}var Ms,t9=function(e,t,r){var n,o,i,a,u,s,l=0,c=!1,f=!1,p=!0;if(typeof e!="function")throw new TypeError("Expected a function");function d(b){var w=n,x=o;return n=o=void 0,l=b,a=e.apply(x,w)}function v(b){return l=b,u=setTimeout(g,t),c?d(b):a}function m(b){var w=b-s;return s===void 0||w>=t||w<0||f&&b-l>=i}function g(){var b=t2();if(m(b))return y(b);u=setTimeout(g,(function(w){var x=t-(w-s);return f?cX(x,i-(w-l)):x})(b))}function y(b){return u=void 0,p&&n?d(b):(n=o=void 0,a)}function h(){var b=t2(),w=m(b);if(n=arguments,o=this,s=b,w){if(u===void 0)return v(s);if(f)return u=setTimeout(g,t),d(s)}return u===void 0&&(u=setTimeout(g,t)),a}return t=e9(t)||0,r2(r)&&(c=!!r.leading,i=(f="maxWait"in r)?lX(e9(r.maxWait)||0,t):i,p="trailing"in r?!!r.trailing:p),h.cancel=function(){u!==void 0&&clearTimeout(u),l=0,n=s=o=u=void 0},h.flush=function(){return u===void 0?a:y(t2())},h},r9=Ra(function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Boolean]",a="[object Date]",u="[object Function]",s="[object GeneratorFunction]",l="[object Map]",c="[object Number]",f="[object Object]",p="[object Promise]",d="[object RegExp]",v="[object Set]",m="[object String]",g="[object Symbol]",y="[object WeakMap]",h="[object ArrayBuffer]",b="[object DataView]",w="[object Float32Array]",x="[object Float64Array]",A="[object Int8Array]",S="[object Int16Array]",B="[object Int32Array]",P="[object Uint8Array]",H="[object Uint8ClampedArray]",U="[object Uint16Array]",W="[object Uint32Array]",C=/\w*$/,z=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,I={};I[o]=I["[object Array]"]=I[h]=I[b]=I[i]=I[a]=I[w]=I[x]=I[A]=I[S]=I[B]=I[l]=I[c]=I[f]=I[d]=I[v]=I[m]=I[g]=I[P]=I[H]=I[U]=I[W]=!0,I["[object Error]"]=I[u]=I[y]=!1;var Y=typeof at=="object"&&at&&at.Object===Object&&at,$=typeof self=="object"&&self&&self.Object===Object&&self,ee=Y||$||Function("return this")(),Q=t&&!t.nodeType&&t,F=Q&&e&&!e.nodeType&&e,O=F&&F.exports===Q;function j(R,Z){return R.set(Z[0],Z[1]),R}function N(R,Z){return R.add(Z),R}function q(R,Z,se,pe){var Ve=-1,wt=R?R.length:0;for(pe;++Ve<wt;)se=Z(se,R[Ve],Ve,R);return se}function G(R){var Z=!1;if(R!=null&&typeof R.toString!="function")try{Z=!!(R+"")}catch{}return Z}function te(R){var Z=-1,se=Array(R.size);return R.forEach(function(pe,Ve){se[++Z]=[Ve,pe]}),se}function fe(R,Z){return function(se){return R(Z(se))}}function de(R){var Z=-1,se=Array(R.size);return R.forEach(function(pe){se[++Z]=pe}),se}var he=Array.prototype,J=Function.prototype,xe=Object.prototype,be=ee["__core-js_shared__"],ce=(function(){var R=/[^.]+$/.exec(be&&be.keys&&be.keys.IE_PROTO||"");return R?"Symbol(src)_1."+R:""})(),Fe=J.toString,_t=xe.hasOwnProperty,qe=xe.toString,tt=RegExp("^"+Fe.call(_t).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),bt=O?ee.Buffer:void 0,Dr=ee.Symbol,ze=ee.Uint8Array,Gr=fe(Object.getPrototypeOf,Object),$n=Object.create,_o=xe.propertyIsEnumerable,fc=he.splice,ls=Object.getOwnPropertySymbols,Zn=bt?bt.isBuffer:void 0,To=fe(Object.keys,Object),si=Po(ee,"DataView"),Sr=Po(ee,"Map"),Ar=Po(ee,"Promise"),kr=Po(ee,"Set"),Pr=Po(ee,"WeakMap"),cr=Po(Object,"create"),Pn=No(si),uh=No(Sr),Fa=No(Ar),li=No(kr),dc=No(Pr),cs=Dr?Dr.prototype:void 0,pc=cs?cs.valueOf:void 0;function Jn(R){var Z=-1,se=R?R.length:0;for(this.clear();++Z<se;){var pe=R[Z];this.set(pe[0],pe[1])}}function jn(R){var Z=-1,se=R?R.length:0;for(this.clear();++Z<se;){var pe=R[Z];this.set(pe[0],pe[1])}}function ci(R){var Z=-1,se=R?R.length:0;for(this.clear();++Z<se;){var pe=R[Z];this.set(pe[0],pe[1])}}function Qn(R){this.__data__=new jn(R)}function _a(R,Z){var se=L(R)||(function(ft){return(function(Ye){return(function(tr){return!!tr&&typeof tr=="object"})(Ye)&&K(Ye)})(ft)&&_t.call(ft,"callee")&&(!_o.call(ft,"callee")||qe.call(ft)==o)})(R)?(function(ft,Ye){for(var tr=-1,Or=Array(ft);++tr<ft;)Or[tr]=Ye(tr);return Or})(R.length,String):[],pe=se.length,Ve=!!pe;for(var wt in R)!_t.call(R,wt)||Ve&&(wt=="length"||Dy(wt,pe))||se.push(wt);return se}function Cy(R,Z,se){var pe=R[Z];_t.call(R,Z)&&Sy(pe,se)&&(se!==void 0||Z in R)||(R[Z]=se)}function fn(R,Z){for(var se=R.length;se--;)if(Sy(R[se][0],Z))return se;return-1}function sh(R,Z,se,pe,Ve,wt,ft){var Ye;if(pe&&(Ye=wt?pe(R,Ve,wt,ft):pe(R)),Ye!==void 0)return Ye;if(!rt(R))return R;var tr=L(R);if(tr){if(Ye=(function(De){var Je=De.length,zt=De.constructor(Je);return Je&&typeof De[0]=="string"&&_t.call(De,"index")&&(zt.index=De.index,zt.input=De.input),zt})(R),!Z)return(function(De,Je){var zt=-1,Me=De.length;for(Je||(Je=Array(Me));++zt<Me;)Je[zt]=De[zt];return Je})(R,Ye)}else{var Or=jo(R),fs=Or==u||Or==s;if(ne(R))return(function(De,Je){if(Je)return De.slice();var zt=new De.constructor(De.length);return De.copy(zt),zt})(R,Z);if(Or==f||Or==o||fs&&!wt){if(G(R))return wt?R:{};if(Ye=(function(De){return typeof De.constructor!="function"||Ta(De)?{}:(Je=Gr(De),rt(Je)?$n(Je):{});var Je})(fs?{}:R),!Z)return(function(De,Je){return xy(De,lh(De),Je)})(R,(function(De,Je){return De&&xy(Je,Ie(Je),De)})(Ye,R))}else{if(!I[Or])return wt?R:{};Ye=(function(De,Je,zt,Me){var Xe=De.constructor;switch(Je){case h:return hc(De);case i:case a:return new Xe(+De);case b:return(function($e,Tt){var jr=Tt?hc($e.buffer):$e.buffer;return new $e.constructor(jr,$e.byteOffset,$e.byteLength)})(De,Me);case w:case x:case A:case S:case B:case P:case H:case U:case W:return(function($e,Tt){var jr=Tt?hc($e.buffer):$e.buffer;return new $e.constructor(jr,$e.byteOffset,$e.length)})(De,Me);case l:return(function($e,Tt,jr){return q(Tt?jr(te($e),!0):te($e),j,new $e.constructor)})(De,Me,zt);case c:case m:return new Xe(De);case d:return(function($e){var Tt=new $e.constructor($e.source,C.exec($e));return Tt.lastIndex=$e.lastIndex,Tt})(De);case v:return(function($e,Tt,jr){return q(Tt?jr(de($e),!0):de($e),N,new $e.constructor)})(De,Me,zt);case g:return(function($e){return pc?Object(pc.call($e)):{}})(De)}})(R,Or,sh,Z)}}ft||(ft=new Qn);var pi=ft.get(R);if(pi)return pi;if(ft.set(R,Ye),!tr)var Pa=se?(function(De){return(function(Je,zt,Me){var Xe=zt(Je);return L(Je)?Xe:(function($e,Tt){for(var jr=-1,Kr=Tt.length,eo=$e.length;++jr<Kr;)$e[eo+jr]=Tt[jr];return $e})(Xe,Me(Je))})(De,Ie,lh)})(R):Ie(R);return(function(De,Je){for(var zt=-1,Me=De?De.length:0;++zt<Me&&Je(De[zt],zt,De)!==!1;);})(Pa||R,function(De,Je){Pa&&(De=R[Je=De]),Cy(Ye,Je,sh(De,Z,se,pe,Je,R,ft))}),Ye}function fi(R){return!(!rt(R)||(function(Z){return!!ce&&ce in Z})(R))&&(ye(R)||G(R)?tt:z).test(No(R))}function hc(R){var Z=new R.constructor(R.byteLength);return new ze(Z).set(new ze(R)),Z}function xy(R,Z,se,pe){se||(se={});for(var Ve=-1,wt=Z.length;++Ve<wt;){var ft=Z[Ve],Ye=void 0;Cy(se,ft,Ye===void 0?R[ft]:Ye)}return se}function di(R,Z){var se,pe,Ve=R.__data__;return((pe=typeof(se=Z))=="string"||pe=="number"||pe=="symbol"||pe=="boolean"?se!=="__proto__":se===null)?Ve[typeof Z=="string"?"string":"hash"]:Ve.map}function Po(R,Z){var se=(function(pe,Ve){return pe?.[Ve]})(R,Z);return fi(se)?se:void 0}Jn.prototype.clear=function(){this.__data__=cr?cr(null):{}},Jn.prototype.delete=function(R){return this.has(R)&&delete this.__data__[R]},Jn.prototype.get=function(R){var Z=this.__data__;if(cr){var se=Z[R];return se===r?void 0:se}return _t.call(Z,R)?Z[R]:void 0},Jn.prototype.has=function(R){var Z=this.__data__;return cr?Z[R]!==void 0:_t.call(Z,R)},Jn.prototype.set=function(R,Z){return this.__data__[R]=cr&&Z===void 0?r:Z,this},jn.prototype.clear=function(){this.__data__=[]},jn.prototype.delete=function(R){var Z=this.__data__,se=fn(Z,R);return!(se<0)&&(se==Z.length-1?Z.pop():fc.call(Z,se,1),!0)},jn.prototype.get=function(R){var Z=this.__data__,se=fn(Z,R);return se<0?void 0:Z[se][1]},jn.prototype.has=function(R){return fn(this.__data__,R)>-1},jn.prototype.set=function(R,Z){var se=this.__data__,pe=fn(se,R);return pe<0?se.push([R,Z]):se[pe][1]=Z,this},ci.prototype.clear=function(){this.__data__={hash:new Jn,map:new(Sr||jn),string:new Jn}},ci.prototype.delete=function(R){return di(this,R).delete(R)},ci.prototype.get=function(R){return di(this,R).get(R)},ci.prototype.has=function(R){return di(this,R).has(R)},ci.prototype.set=function(R,Z){return di(this,R).set(R,Z),this},Qn.prototype.clear=function(){this.__data__=new jn},Qn.prototype.delete=function(R){return this.__data__.delete(R)},Qn.prototype.get=function(R){return this.__data__.get(R)},Qn.prototype.has=function(R){return this.__data__.has(R)},Qn.prototype.set=function(R,Z){var se=this.__data__;if(se instanceof jn){var pe=se.__data__;if(!Sr||pe.length<199)return pe.push([R,Z]),this;se=this.__data__=new ci(pe)}return se.set(R,Z),this};var lh=ls?fe(ls,Object):function(){return[]},jo=function(R){return qe.call(R)};function Dy(R,Z){return!!(Z=Z??n)&&(typeof R=="number"||k.test(R))&&R>-1&&R%1==0&&R<Z}function Ta(R){var Z=R&&R.constructor;return R===(typeof Z=="function"&&Z.prototype||xe)}function No(R){if(R!=null){try{return Fe.call(R)}catch{}try{return R+""}catch{}}return""}function Sy(R,Z){return R===Z||R!=R&&Z!=Z}(si&&jo(new si(new ArrayBuffer(1)))!=b||Sr&&jo(new Sr)!=l||Ar&&jo(Ar.resolve())!=p||kr&&jo(new kr)!=v||Pr&&jo(new Pr)!=y)&&(jo=function(R){var Z=qe.call(R),se=Z==f?R.constructor:void 0,pe=se?No(se):void 0;if(pe)switch(pe){case Pn:return b;case uh:return l;case Fa:return p;case li:return v;case dc:return y}return Z});var L=Array.isArray;function K(R){return R!=null&&(function(Z){return typeof Z=="number"&&Z>-1&&Z%1==0&&Z<=n})(R.length)&&!ye(R)}var ne=Zn||function(){return!1};function ye(R){var Z=rt(R)?qe.call(R):"";return Z==u||Z==s}function rt(R){var Z=typeof R;return!!R&&(Z=="object"||Z=="function")}function Ie(R){return K(R)?_a(R):(function(Z){if(!Ta(Z))return To(Z);var se=[];for(var pe in Object(Z))_t.call(Z,pe)&&pe!="constructor"&&se.push(pe);return se})(R)}e.exports=function(R){return sh(R,!0,!0)}});function n9(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var fX=0;function dX(e){return"__private_"+fX+++"_"+e}function pX(e,t,r){const n=[];return e.forEach(o=>typeof o!="string"?n.push(o):t[Symbol.split](o).forEach((i,a,u)=>{i!==""&&n.push(i),a<u.length-1&&n.push(r)})),n}function o9(e,t){const r=/\$/g;let n=[e];if(t==null)return n;for(const o of Object.keys(t))if(o!=="_"){let i=t[o];typeof i=="string"&&(i=r[Symbol.replace](i,"$$$$")),n=pX(n,new RegExp(`%\\{${o}\\}`,"g"),i)}return n}var i9=(Ms=dX("apply"),class{constructor(e){Object.defineProperty(this,Ms,{value:hX}),this.locale={strings:{},pluralize:t=>t===1?0:1},Array.isArray(e)?e.forEach(n9(this,Ms)[Ms],this):n9(this,Ms)[Ms](e)}translate(e,t){return this.translateArray(e,t).join("")}translateArray(e,t){if(!(function(n,o){return Object.prototype.hasOwnProperty.call(n,o)})(this.locale.strings,e))throw new Error(`missing string: ${e}`);const r=this.locale.strings[e];if(typeof r=="object"){if(t&&t.smart_count!==void 0)return o9(r[this.locale.pluralize(t.smart_count)],t);throw new Error("Attempted to use a string with plural forms, but no value was given for %{smart_count}")}return o9(r,t)}});function hX(e){if(e==null||!e.strings)return;const t=this.locale;this.locale={...t,strings:{...t.strings,...e.strings}},this.locale.pluralize=e.pluralize||t.pluralize}var a9=function(){var e={},t=e._fns={};return e.emit=function(r,n,o,i,a,u,s){var l=(function(c){for(var f=t[c]?t[c]:[],p=c.indexOf(":"),d=p===-1?[c]:[c.substring(0,p),c.substring(p+1)],v=Object.keys(t),m=0,g=v.length;m<g;m++){var y=v[m];if(y==="*"&&(f=f.concat(t[y])),d.length===2&&d[0]===y){f=f.concat(t[y]);break}}return f})(r);l.length&&(function(c,f,p){for(var d=0,v=f.length;d<v&&f[d];d++)f[d].event=c,f[d].apply(f[d],p)})(r,l,[n,o,i,a,u,s])},e.on=function(r,n){t[r]||(t[r]=[]),t[r].push(n)},e.once=function(r,n){this.on(r,function o(){n.apply(this,arguments),e.off(r,o)})},e.off=function(r,n){var o=[];if(r&&n)for(var i=this._fns[r],a=0,u=i?i.length:0;a<u;a++)i[a]!==n&&o.push(i[a]);o.length?this._fns[r]=o:delete this._fns[r]},e},gX={nanoid:(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e));for(;e--;){let n=63&r[e];t+=n<36?n.toString(36):n<62?(n-26).toString(36).toUpperCase():n<63?"_":"-"}return t}},n2=function(e){if(typeof e!="number"||isNaN(e))throw new TypeError("Expected a number, got "+typeof e);var t=e<0,r=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];if(t&&(e=-e),e<1)return(t?"-":"")+e+" B";var n=Math.min(Math.floor(Math.log(e)/Math.log(1024)),r.length-1);e=Number(e/Math.pow(1024,n));var o=r[n];return e>=10||e%1==0?(t?"-":"")+e.toFixed(0)+" "+o:(t?"-":"")+e.toFixed(1)+" "+o};function u9(e,t){this.text=e=e||"",this.hasWild=~e.indexOf("*"),this.separator=t,this.parts=e.split(t)}u9.prototype.match=function(e){var t,r,n=!0,o=this.parts,i=o.length;if(typeof e=="string"||e instanceof String)if(this.hasWild||this.text==e){for(r=(e||"").split(this.separator),t=0;n&&t<i;t++)o[t]!=="*"&&(n=t<r.length&&o[t]===r[t]);n=n&&r}else n=!1;else if(typeof e.splice=="function")for(n=[],t=e.length;t--;)this.match(e[t])&&(n[n.length]=e[t]);else if(typeof e=="object")for(var a in n={},e)this.match(a)&&(n[a]=e[a]);return n};var vX=/[\/\+\.]/,mX=function(e,t){function r(n){var o=(function(i,a,u){var s=new u9(i,u||/[\/\.]/);return a!==void 0?s.match(a):s})(n,e,vX);return o&&o.length>=2}return t?r(t.split(";")[0]):r},yX=0;function bX(e){return"__private_"+yX+++"_"+e}var o2=bX("publish");class s9{constructor(){Object.defineProperty(this,o2,{value:wX}),this.state={},this.callbacks=[]}getState(){return this.state}setState(t){const r={...this.state},n={...this.state,...t};this.state=n,(function(o,i){if(!Object.prototype.hasOwnProperty.call(o,i))throw new TypeError("attempted to use private field on non-instance");return o})(this,o2)[o2](r,n,t)}subscribe(t){return this.callbacks.push(t),()=>{this.callbacks.splice(this.callbacks.indexOf(t),1)}}}function wX(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];this.callbacks.forEach(n=>{n(...t)})}s9.VERSION="2.0.3";var l9=function(e){const t=e.lastIndexOf(".");return t===-1||t===e.length-1?{name:e,extension:void 0}:{name:e.slice(0,t),extension:e.slice(t+1)}},c9={md:"text/markdown",markdown:"text/markdown",mp4:"video/mp4",mp3:"audio/mp3",svg:"image/svg+xml",jpg:"image/jpeg",png:"image/png",gif:"image/gif",heic:"image/heic",heif:"image/heif",yaml:"text/yaml",yml:"text/yaml",csv:"text/csv",tsv:"text/tab-separated-values",tab:"text/tab-separated-values",avi:"video/x-msvideo",mks:"video/x-matroska",mkv:"video/x-matroska",mov:"video/quicktime",doc:"application/msword",docm:"application/vnd.ms-word.document.macroenabled.12",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",dot:"application/msword",dotm:"application/vnd.ms-word.template.macroenabled.12",dotx:"application/vnd.openxmlformats-officedocument.wordprocessingml.template",xla:"application/vnd.ms-excel",xlam:"application/vnd.ms-excel.addin.macroenabled.12",xlc:"application/vnd.ms-excel",xlf:"application/x-xliff+xml",xlm:"application/vnd.ms-excel",xls:"application/vnd.ms-excel",xlsb:"application/vnd.ms-excel.sheet.binary.macroenabled.12",xlsm:"application/vnd.ms-excel.sheet.macroenabled.12",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xlt:"application/vnd.ms-excel",xltm:"application/vnd.ms-excel.template.macroenabled.12",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template",xlw:"application/vnd.ms-excel",txt:"text/plain",text:"text/plain",conf:"text/plain",log:"text/plain",pdf:"application/pdf",zip:"application/zip","7z":"application/x-7z-compressed",rar:"application/x-rar-compressed",tar:"application/x-tar",gz:"application/gzip",dmg:"application/x-apple-diskimage"};function f9(e){let t="";return e.replace(/[^A-Z0-9]/gi,r=>(t+=`-${(function(n){return n.charCodeAt(0).toString(32)})(r)}`,"/"))+t}var EX=function(e){if(e==null&&(e=typeof navigator<"u"?navigator.userAgent:null),!e)return!0;const t=/Edge\/(\d+\.\d+)/.exec(e);if(!t)return!0;const r=t[1];let[n,o]=r.split(".");return n=parseInt(n,10),o=parseInt(o,10),n<15||n===15&&o<15063||n>18||n===18&&o>=18218};function i2(e){return e<10?`0${e}`:e.toString()}var Og=function(){const e=new Date;return`${i2(e.getHours())}:${i2(e.getMinutes())}:${i2(e.getSeconds())}`},d9={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${Og()}]`,...t)}},debugLogger:{debug:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.debug(`[Uppy] [${Og()}]`,...t)},warn:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.warn(`[Uppy] [${Og()}]`,...t)},error:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return console.error(`[Uppy] [${Og()}]`,...t)}}},CX={strings:{addBulkFilesFailed:{0:"Failed to add %{smart_count} file due to an internal error",1:"Failed to add %{smart_count} files due to internal errors"},youCanOnlyUploadX:{0:"You can only upload %{smart_count} file",1:"You can only upload %{smart_count} files"},youHaveToAtLeastSelectX:{0:"You have to select at least %{smart_count} file",1:"You have to select at least %{smart_count} files"},exceedsSize:"%{file} exceeds maximum allowed size of %{size}",missingRequiredMetaField:"Missing required meta fields",missingRequiredMetaFieldOnFile:"Missing required meta fields in %{fileName}",inferiorSize:"This file is smaller than the allowed size of %{size}",youCanOnlyUploadFileTypes:"You can only upload: %{types}",noMoreFilesAllowed:"Cannot add more files",noDuplicates:"Cannot add the duplicate file '%{fileName}', it already exists",companionError:"Connection with Companion failed",authAborted:"Authentication aborted",companionUnauthorizeHint:"To unauthorize to your %{provider} account, please go to %{url}",failedToUpload:"Failed to upload %{file}",noInternetConnection:"No Internet connection",connectedToInternet:"Connected to the Internet",noFilesFound:"You have no files or folders here",selectX:{0:"Select %{smart_count}",1:"Select %{smart_count}"},allFilesFromFolderNamed:"All files from folder %{name}",openFolderNamed:"Open folder %{name}",cancel:"Cancel",logOut:"Log out",filter:"Filter",resetFilter:"Reset filter",loading:"Loading...",authenticateWithTitle:"Please authenticate with %{pluginName} to select files",authenticateWith:"Connect to %{pluginName}",signInWithGoogle:"Sign in with Google",searchImages:"Search for images",enterTextToSearch:"Enter text to search for images",backToSearch:"Back to Search",emptyFolderAdded:"No files were added from empty folder",folderAlreadyAdded:'The folder "%{folder}" was already added',folderAdded:{0:"Added %{smart_count} file from %{folder}",1:"Added %{smart_count} files from %{folder}"}}},p9=gX;let h9,g9;function ve(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var xX=0;function Ht(e){return"__private_"+xX+++"_"+e}const{nanoid:DX}=p9,{justErrorsLogger:SX,debugLogger:AX}=d9;class so extends Error{constructor(){super(...arguments),this.isRestriction=!0}}typeof AggregateError>"u"&&(globalThis.AggregateError=class extends Error{constructor(e,t){super(t),this.errors=e}});class kX extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}}var pr=Ht("plugins"),Jc=Ht("storeUnsubscribe"),Uo=Ht("emitter"),ru=Ht("preProcessors"),nu=Ht("uploaders"),qo=Ht("postProcessors"),Qc=Ht("checkRestrictions"),a2=Ht("checkMinNumberOfFiles"),ef=Ht("checkRequiredMetaFieldsOnFile"),u2=Ht("checkRequiredMetaFields"),Zt=Ht("showOrLogErrorAndThrow"),tf=Ht("assertNewUploadAllowed"),rf=Ht("checkAndCreateFileStateObject"),nf=Ht("startIfAutoProceed"),s2=Ht("addListeners"),Ln=Ht("updateOnlineStatus"),Wo=Ht("createUpload"),l2=Ht("getUpload"),ou=Ht("removeUpload"),Go=Ht("runUpload");h9=Symbol.for("uppy test: getPlugins"),g9=Symbol.for("uppy test: createUpload");class v9{constructor(t){Object.defineProperty(this,Go,{value:zX}),Object.defineProperty(this,ou,{value:MX}),Object.defineProperty(this,l2,{value:LX}),Object.defineProperty(this,Wo,{value:IX}),Object.defineProperty(this,s2,{value:RX}),Object.defineProperty(this,nf,{value:NX}),Object.defineProperty(this,rf,{value:jX}),Object.defineProperty(this,tf,{value:PX}),Object.defineProperty(this,Zt,{value:TX}),Object.defineProperty(this,u2,{value:_X}),Object.defineProperty(this,ef,{value:FX}),Object.defineProperty(this,a2,{value:BX}),Object.defineProperty(this,Qc,{value:OX}),Object.defineProperty(this,pr,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Jc,{writable:!0,value:void 0}),Object.defineProperty(this,Uo,{writable:!0,value:a9()}),Object.defineProperty(this,ru,{writable:!0,value:new Set}),Object.defineProperty(this,nu,{writable:!0,value:new Set}),Object.defineProperty(this,qo,{writable:!0,value:new Set}),Object.defineProperty(this,Ln,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=CX;const r={id:"uppy",autoProceed:!1,allowMultipleUploads:!0,allowMultipleUploadBatches:!0,debug:!1,restrictions:{maxFileSize:null,minFileSize:null,maxTotalFileSize:null,maxNumberOfFiles:null,minNumberOfFiles:null,allowedFileTypes:null,requiredMetaFields:[]},meta:{},onBeforeFileAdded:n=>n,onBeforeUpload:n=>n,store:new s9,logger:SX,infoTimeout:5e3};if(this.opts={...r,...t,restrictions:{...r.restrictions,...t&&t.restrictions}},t&&t.logger&&t.debug?this.log("You are using a custom `logger`, but also set `debug: true`, which uses built-in logger to output logs to console. Ignoring `debug: true` and using your custom `logger`.","warning"):t&&t.debug&&(this.opts.logger=AX),this.log(`Using Core v${this.constructor.VERSION}`),this.opts.restrictions.allowedFileTypes&&this.opts.restrictions.allowedFileTypes!==null&&!Array.isArray(this.opts.restrictions.allowedFileTypes))throw new TypeError("`restrictions.allowedFileTypes` must be an array");this.i18nInit(),this.calculateProgress=tu(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:EX(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),ve(this,Jc)[Jc]=this.store.subscribe((n,o,i)=>{this.emit("state-update",n,o,i),this.updateAll(o)}),this.opts.debug&&typeof window<"u"&&(window[this.opts.id]=this),ve(this,s2)[s2]()}emit(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];ve(this,Uo)[Uo].emit(t,...n)}on(t,r){return ve(this,Uo)[Uo].on(t,r),this}once(t,r){return ve(this,Uo)[Uo].once(t,r),this}off(t,r){return ve(this,Uo)[Uo].off(t,r),this}updateAll(t){this.iteratePlugins(r=>{r.update(t)})}setState(t){this.store.setState(t)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(t,r){if(!this.getState().files[t])throw new Error(`Can’t set state for ${t} (the file could have been removed)`);this.setState({files:{...this.getState().files,[t]:{...this.getState().files[t],...r}}})}i18nInit(){const t=new i9([this.defaultLocale,this.opts.locale]);this.i18n=t.translate.bind(t),this.i18nArray=t.translateArray.bind(t),this.locale=t.locale}setOptions(t){this.opts={...this.opts,...t,restrictions:{...this.opts.restrictions,...t&&t.restrictions}},t.meta&&this.setMeta(t.meta),this.i18nInit(),t.locale&&this.iteratePlugins(r=>{r.setOptions()}),this.setState()}resetProgress(){const t={percentage:0,bytesUploaded:0,uploadComplete:!1,uploadStarted:null},r={...this.getState().files},n={};Object.keys(r).forEach(o=>{const i={...r[o]};i.progress={...i.progress,...t},n[o]=i}),this.setState({files:n,totalProgress:0}),this.emit("reset-progress")}addPreProcessor(t){ve(this,ru)[ru].add(t)}removePreProcessor(t){return ve(this,ru)[ru].delete(t)}addPostProcessor(t){ve(this,qo)[qo].add(t)}removePostProcessor(t){return ve(this,qo)[qo].delete(t)}addUploader(t){ve(this,nu)[nu].add(t)}removeUploader(t){return ve(this,nu)[nu].delete(t)}setMeta(t){const r={...this.getState().meta,...t},n={...this.getState().files};Object.keys(n).forEach(o=>{n[o]={...n[o],meta:{...n[o].meta,...t}}}),this.log("Adding metadata:"),this.log(t),this.setState({meta:r,files:n})}setFileMeta(t,r){const n={...this.getState().files};if(!n[t])return void this.log("Was trying to set metadata for a file that has been removed: ",t);const o={...n[t].meta,...r};n[t]={...n[t],meta:o},this.setState({files:n})}getFile(t){return this.getState().files[t]}getFiles(){const{files:t}=this.getState();return Object.values(t)}getObjectOfFilesPerState(){const{files:t,totalProgress:r,error:n}=this.getState(),o=Object.values(t),i=o.filter(v=>{let{progress:m}=v;return!m.uploadComplete&&m.uploadStarted}),a=o.filter(v=>!v.progress.uploadStarted),u=o.filter(v=>v.progress.uploadStarted||v.progress.preprocess||v.progress.postprocess),s=o.filter(v=>v.progress.uploadStarted),l=o.filter(v=>v.isPaused),c=o.filter(v=>v.progress.uploadComplete),f=o.filter(v=>v.error),p=i.filter(v=>!v.isPaused),d=o.filter(v=>v.progress.preprocess||v.progress.postprocess);return{newFiles:a,startedFiles:u,uploadStartedFiles:s,pausedFiles:l,completeFiles:c,erroredFiles:f,inProgressFiles:i,inProgressNotPausedFiles:p,processingFiles:d,isUploadStarted:s.length>0,isAllComplete:r===100&&c.length===o.length&&d.length===0,isAllErrored:!!n&&f.length===o.length,isAllPaused:i.length!==0&&l.length===i.length,isUploadInProgress:i.length>0,isSomeGhost:o.some(v=>v.isGhost)}}validateRestrictions(t,r){try{return ve(this,Qc)[Qc](t,r),{result:!0}}catch(n){return{result:!1,reason:n.message}}}checkIfFileAlreadyExists(t){const{files:r}=this.getState();return!(!r[t]||r[t].isGhost)}addFile(t){ve(this,tf)[tf](t);const{files:r}=this.getState();let n=ve(this,rf)[rf](r,t);return r[n.id]&&r[n.id].isGhost&&(n={...r[n.id],data:t.data,isGhost:!1},this.log(`Replaced the blob in the restored ghost file: ${n.name}, ${n.id}`)),this.setState({files:{...r,[n.id]:n}}),this.emit("file-added",n),this.emit("files-added",[n]),this.log(`Added file: ${n.name}, ${n.id}, mime type: ${n.type}`),ve(this,nf)[nf](),n.id}addFiles(t){ve(this,tf)[tf]();const r={...this.getState().files},n=[],o=[];for(let i=0;i<t.length;i++)try{let a=ve(this,rf)[rf](r,t[i]);r[a.id]&&r[a.id].isGhost&&(a={...r[a.id],data:t[i].data,isGhost:!1},this.log(`Replaced blob in a ghost file: ${a.name}, ${a.id}`)),r[a.id]=a,n.push(a)}catch(a){a.isRestriction||o.push(a)}if(this.setState({files:r}),n.forEach(i=>{this.emit("file-added",i)}),this.emit("files-added",n),n.length>5?this.log(`Added batch of ${n.length} files`):Object.keys(n).forEach(i=>{this.log(`Added file: ${n[i].name}
11
+ id: ${n[i].id}
12
+ type: ${n[i].type}`)}),n.length>0&&ve(this,nf)[nf](),o.length>0){let i=`Multiple errors occurred while adding files:
13
+ `;if(o.forEach(a=>{i+=`
14
+ * ${a.message}`}),this.info({message:this.i18n("addBulkFilesFailed",{smart_count:o.length}),details:i},"error",this.opts.infoTimeout),typeof AggregateError=="function")throw new AggregateError(o,i);{const a=new Error(i);throw a.errors=o,a}}}removeFiles(t,r){const{files:n,currentUploads:o}=this.getState(),i={...n},a={...o},u=Object.create(null);function s(f){return u[f]===void 0}t.forEach(f=>{n[f]&&(u[f]=n[f],delete i[f])}),Object.keys(a).forEach(f=>{const p=o[f].fileIDs.filter(s);p.length!==0?a[f]={...o[f],fileIDs:p}:delete a[f]});const l={currentUploads:a,files:i};Object.keys(i).length===0&&(l.allowNewUpload=!0,l.error=null,l.recoveredState=null),this.setState(l),this.calculateTotalProgress();const c=Object.keys(u);c.forEach(f=>{this.emit("file-removed",u[f],r)}),c.length>5?this.log(`Removed ${c.length} files`):this.log(`Removed files: ${c.join(", ")}`)}removeFile(t,r){r===void 0&&(r=null),this.removeFiles([t],r)}pauseResume(t){if(!this.getState().capabilities.resumableUploads||this.getFile(t).uploadComplete)return;const r=!this.getFile(t).isPaused;return this.setFileState(t,{isPaused:r}),this.emit("upload-pause",t,r),r}pauseAll(){const t={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const n={...t[r],isPaused:!0};t[r]=n}),this.setState({files:t}),this.emit("pause-all")}resumeAll(){const t={...this.getState().files};Object.keys(t).filter(r=>!t[r].progress.uploadComplete&&t[r].progress.uploadStarted).forEach(r=>{const n={...t[r],isPaused:!1,error:null};t[r]=n}),this.setState({files:t}),this.emit("resume-all")}retryAll(){const t={...this.getState().files},r=Object.keys(t).filter(o=>t[o].error);if(r.forEach(o=>{const i={...t[o],isPaused:!1,error:null};t[o]=i}),this.setState({files:t,error:null}),this.emit("retry-all",r),r.length===0)return Promise.resolve({successful:[],failed:[]});const n=ve(this,Wo)[Wo](r,{forceAllowNewUpload:!0});return ve(this,Go)[Go](n)}cancelAll(){this.emit("cancel-all");const{files:t}=this.getState(),r=Object.keys(t);r.length&&this.removeFiles(r,"cancel-all"),this.setState({totalProgress:0,error:null,recoveredState:null})}retryUpload(t){this.setFileState(t,{error:null,isPaused:!1}),this.emit("upload-retry",t);const r=ve(this,Wo)[Wo]([t],{forceAllowNewUpload:!0});return ve(this,Go)[Go](r)}reset(){this.cancelAll()}logout(){this.iteratePlugins(t=>{t.provider&&t.provider.logout&&t.provider.logout()})}calculateProgress(t,r){if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n=Number.isFinite(r.bytesTotal)&&r.bytesTotal>0;this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,bytesUploaded:r.bytesUploaded,bytesTotal:r.bytesTotal,percentage:n?Math.round(r.bytesUploaded/r.bytesTotal*100):0}}),this.calculateTotalProgress()}calculateTotalProgress(){const t=this.getFiles().filter(s=>s.progress.uploadStarted||s.progress.preprocess||s.progress.postprocess);if(t.length===0)return this.emit("progress",0),void this.setState({totalProgress:0});const r=t.filter(s=>s.progress.bytesTotal!=null),n=t.filter(s=>s.progress.bytesTotal==null);if(r.length===0){const s=100*t.length,l=n.reduce((f,p)=>f+p.progress.percentage,0),c=Math.round(l/s*100);return void this.setState({totalProgress:c})}let o=r.reduce((s,l)=>s+l.progress.bytesTotal,0);const i=o/r.length;o+=i*n.length;let a=0;r.forEach(s=>{a+=s.progress.bytesUploaded}),n.forEach(s=>{a+=i*(s.progress.percentage||0)/100});let u=o===0?0:Math.round(a/o*100);u>100&&(u=100),this.setState({totalProgress:u}),this.emit("progress",u)}updateOnlineStatus(){window.navigator.onLine===void 0||window.navigator.onLine?(this.emit("is-online"),this.wasOffline&&(this.emit("back-online"),this.info(this.i18n("connectedToInternet"),"success",3e3),this.wasOffline=!1)):(this.emit("is-offline"),this.info(this.i18n("noInternetConnection"),"error",0),this.wasOffline=!0)}getID(){return this.opts.id}use(t,r){if(typeof t!="function")throw new TypeError(`Expected a plugin class, but got ${t===null?"null":typeof t}. Please verify that the plugin was imported and spelled correctly.`);const n=new t(this,r),o=n.id;if(!o)throw new Error("Your plugin must have an id");if(!n.type)throw new Error("Your plugin must have a type");const i=this.getPlugin(o);if(i){const a=`Already found a plugin named '${i.id}'. Tried to use: '${o}'.
15
+ Uppy plugins must have unique \`id\` options. See https://uppy.io/docs/plugins/#id.`;throw new Error(a)}return t.VERSION&&this.log(`Using ${o} v${t.VERSION}`),n.type in ve(this,pr)[pr]?ve(this,pr)[pr][n.type].push(n):ve(this,pr)[pr][n.type]=[n],n.install(),this}getPlugin(t){for(const r of Object.values(ve(this,pr)[pr])){const n=r.find(o=>o.id===t);if(n!=null)return n}}[h9](t){return ve(this,pr)[pr][t]}iteratePlugins(t){Object.values(ve(this,pr)[pr]).flat(1).forEach(t)}removePlugin(t){this.log(`Removing plugin ${t.id}`),this.emit("plugin-remove",t),t.uninstall&&t.uninstall();const r=ve(this,pr)[pr][t.type],n=r.findIndex(i=>i.id===t.id);n!==-1&&r.splice(n,1);const o={plugins:{...this.getState().plugins,[t.id]:void 0}};this.setState(o)}close(){this.log(`Closing Uppy instance ${this.opts.id}: removing all files and uninstalling plugins`),this.reset(),ve(this,Jc)[Jc](),this.iteratePlugins(t=>{this.removePlugin(t)}),typeof window<"u"&&window.removeEventListener&&(window.removeEventListener("online",ve(this,Ln)[Ln]),window.removeEventListener("offline",ve(this,Ln)[Ln]))}hideInfo(){const{info:t}=this.getState();this.setState({info:t.slice(1)}),this.emit("info-hidden")}info(t,r,n){r===void 0&&(r="info"),n===void 0&&(n=3e3);const o=typeof t=="object";this.setState({info:[...this.getState().info,{type:r,message:o?t.message:t,details:o?t.details:null}]}),setTimeout(()=>this.hideInfo(),n),this.emit("info-visible")}log(t,r){const{logger:n}=this.opts;switch(r){case"error":n.error(t);break;case"warning":n.warn(t);break;default:n.debug(t)}}restore(t){return this.log(`Core: attempting to restore upload "${t}"`),this.getState().currentUploads[t]?ve(this,Go)[Go](t):(ve(this,ou)[ou](t),Promise.reject(new Error("Nonexistent upload")))}[g9](){return ve(this,Wo)[Wo](...arguments)}addResultData(t,r){if(!ve(this,l2)[l2](t))return void this.log(`Not setting result for an upload that has been removed: ${t}`);const{currentUploads:n}=this.getState(),o={...n[t],result:{...n[t].result,...r}};this.setState({currentUploads:{...n,[t]:o}})}upload(){var t;(t=ve(this,pr)[pr].uploader)!=null&&t.length||this.log("No uploader type plugins are used","warning");let{files:r}=this.getState();const n=this.opts.onBeforeUpload(r);return n===!1?Promise.reject(new Error("Not starting the upload because onBeforeUpload returned false")):(n&&typeof n=="object"&&(r=n,this.setState({files:r})),Promise.resolve().then(()=>{ve(this,a2)[a2](r),ve(this,u2)[u2](r)}).catch(o=>{ve(this,Zt)[Zt](o)}).then(()=>{const{currentUploads:o}=this.getState(),i=Object.values(o).flatMap(s=>s.fileIDs),a=[];Object.keys(r).forEach(s=>{const l=this.getFile(s);l.progress.uploadStarted||i.indexOf(s)!==-1||a.push(l.id)});const u=ve(this,Wo)[Wo](a);return ve(this,Go)[Go](u)}).catch(o=>{ve(this,Zt)[Zt](o,{showInformer:!1})}))}}function OX(e,t){t===void 0&&(t=this.getFiles());const{maxFileSize:r,minFileSize:n,maxTotalFileSize:o,maxNumberOfFiles:i,allowedFileTypes:a}=this.opts.restrictions;if(i&&t.length+1>i)throw new so(`${this.i18n("youCanOnlyUploadX",{smart_count:i})}`);if(a&&!a.some(u=>u.indexOf("/")>-1?!!e.type&&mX(e.type.replace(/;.*?$/,""),u):!(u[0]!=="."||!e.extension)&&e.extension.toLowerCase()===u.substr(1).toLowerCase())){const u=a.join(", ");throw new so(this.i18n("youCanOnlyUploadFileTypes",{types:u}))}if(o&&e.size!=null){let u=0;if(u+=e.size,t.forEach(s=>{u+=s.size}),u>o)throw new so(this.i18n("exceedsSize",{size:n2(o),file:e.name}))}if(r&&e.size!=null&&e.size>r)throw new so(this.i18n("exceedsSize",{size:n2(r),file:e.name}));if(n&&e.size!=null&&e.size<n)throw new so(this.i18n("inferiorSize",{size:n2(n)}))}function BX(e){const{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new so(`${this.i18n("youHaveToAtLeastSelectX",{smart_count:t})}`)}function FX(e){const{requiredMetaFields:t}=this.opts.restrictions,{hasOwnProperty:r}=Object.prototype,n=[],o=[];for(let i=0;i<t.length;i++)if(!r.call(e.meta,t[i])||e.meta[t[i]]===""){const a=new so(`${this.i18n("missingRequiredMetaFieldOnFile",{fileName:e.name})}`);n.push(a),o.push(t[i]),ve(this,Zt)[Zt](a,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:o}),n}function _X(e){const t=Object.keys(e).flatMap(r=>{const n=this.getFile(r);return ve(this,ef)[ef](n)});if(t.length)throw new kX(t,`${this.i18n("missingRequiredMetaField")}`)}function TX(e,t){let{showInformer:r=!0,file:n=null,throwErr:o=!0}=t===void 0?{}:t;const i=typeof e=="object"?e.message:e,a=typeof e=="object"&&e.details?e.details:"";let u=i;if(a&&(u+=` ${a}`),e.isRestriction?(this.log(u),this.emit("restriction-failed",n,e)):this.log(u,"error"),r&&this.info({message:i,details:a},"error",this.opts.infoTimeout),o)throw typeof e=="object"?e:new Error(e)}function PX(e){const{allowNewUpload:t}=this.getState();t===!1&&ve(this,Zt)[Zt](new so(this.i18n("noMoreFilesAllowed")),{file:e})}function jX(e,t){const r=(function(f){var p;if(f.type)return f.type;const d=f.name?(p=l9(f.name).extension)==null?void 0:p.toLowerCase():null;return d&&d in c9?c9[d]:"application/octet-stream"})(t),n=(function(f,p){return p.name?p.name:f.split("/")[0]==="image"?`${f.split("/")[0]}.${f.split("/")[1]}`:"noname"})(r,t),o=l9(n).extension,i=!!t.isRemote,a=(function(f){let p="uppy";return typeof f.name=="string"&&(p+=`-${f9(f.name.toLowerCase())}`),f.type!==void 0&&(p+=`-${f.type}`),f.meta&&typeof f.meta.relativePath=="string"&&(p+=`-${f9(f.meta.relativePath.toLowerCase())}`),f.data.size!==void 0&&(p+=`-${f.data.size}`),f.data.lastModified!==void 0&&(p+=`-${f.data.lastModified}`),p})({...t,type:r});if(this.checkIfFileAlreadyExists(a)){const f=new so(this.i18n("noDuplicates",{fileName:n}));ve(this,Zt)[Zt](f,{file:t})}const u=t.meta||{};u.name=n,u.type=r;const s=Number.isFinite(t.data.size)?t.data.size:null;let l={source:t.source||"",id:a,name:n,extension:o||"",meta:{...this.getState().meta,...u},type:r,data:t.data,progress:{percentage:0,bytesUploaded:0,bytesTotal:s,uploadComplete:!1,uploadStarted:null},size:s,isRemote:i,remote:t.remote||"",preview:t.preview};const c=this.opts.onBeforeFileAdded(l,e);c===!1?ve(this,Zt)[Zt](new so("Cannot add the file because onBeforeFileAdded returned false."),{showInformer:!1,fileDescriptor:t}):typeof c=="object"&&c!==null&&(l=c);try{const f=Object.keys(e).map(p=>e[p]);ve(this,Qc)[Qc](l,f)}catch(f){ve(this,Zt)[Zt](f,{file:l})}return l}function NX(){this.opts.autoProceed&&!this.scheduledAutoProceed&&(this.scheduledAutoProceed=setTimeout(()=>{this.scheduledAutoProceed=null,this.upload().catch(e=>{e.isRestriction||this.log(e.stack||e.message||e)})},4))}function RX(){const e=(t,r,n)=>{let o=t.message||"Unknown error";t.details&&(o+=` ${t.details}`),this.setState({error:o}),r!=null&&r.id in this.getState().files&&this.setFileState(r.id,{error:o,response:n})};this.on("error",e),this.on("upload-error",(t,r,n)=>{if(e(r,t,n),typeof r=="object"&&r.message){const o=new Error(r.message);o.details=r.message,r.details&&(o.details+=` ${r.details}`),o.message=this.i18n("failedToUpload",{file:t.name}),ve(this,Zt)[Zt](o,{throwErr:!1})}else ve(this,Zt)[Zt](r,{throwErr:!1})}),this.on("upload",()=>{this.setState({error:null})}),this.on("upload-started",t=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{uploadStarted:Date.now(),uploadComplete:!1,percentage:0,bytesUploaded:0,bytesTotal:t.size}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("upload-progress",this.calculateProgress),this.on("upload-success",(t,r)=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const n=this.getFile(t.id).progress;this.setFileState(t.id,{progress:{...n,postprocess:ve(this,qo)[qo].size>0?{mode:"indeterminate"}:null,uploadComplete:!0,percentage:100,bytesUploaded:n.bytesTotal},response:r,uploadURL:r.uploadURL,isPaused:!1}),t.size==null&&this.setFileState(t.id,{size:r.bytesUploaded||n.bytesTotal}),this.calculateTotalProgress()}),this.on("preprocess-progress",(t,r)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getFile(t.id).progress,preprocess:r}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("preprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r={...this.getState().files};r[t.id]={...r[t.id],progress:{...r[t.id].progress}},delete r[t.id].progress.preprocess,this.setState({files:r})}),this.on("postprocess-progress",(t,r)=>{this.getFile(t.id)?this.setFileState(t.id,{progress:{...this.getState().files[t.id].progress,postprocess:r}}):this.log(`Not setting progress for a file that has been removed: ${t.id}`)}),this.on("postprocess-complete",t=>{if(!this.getFile(t.id))return void this.log(`Not setting progress for a file that has been removed: ${t.id}`);const r={...this.getState().files};r[t.id]={...r[t.id],progress:{...r[t.id].progress}},delete r[t.id].progress.postprocess,this.setState({files:r})}),this.on("restored",()=>{this.calculateTotalProgress()}),this.on("dashboard:file-edit-complete",t=>{t&&ve(this,ef)[ef](t)}),typeof window<"u"&&window.addEventListener&&(window.addEventListener("online",ve(this,Ln)[Ln]),window.addEventListener("offline",ve(this,Ln)[Ln]),setTimeout(ve(this,Ln)[Ln],3e3))}function IX(e,t){t===void 0&&(t={});const{forceAllowNewUpload:r=!1}=t,{allowNewUpload:n,currentUploads:o}=this.getState();if(!n&&!r)throw new Error("Cannot create a new upload: already uploading.");const i=DX();return this.emit("upload",{id:i,fileIDs:e}),this.setState({allowNewUpload:this.opts.allowMultipleUploadBatches!==!1&&this.opts.allowMultipleUploads!==!1,currentUploads:{...o,[i]:{fileIDs:e,step:0,result:{}}}}),i}function LX(e){const{currentUploads:t}=this.getState();return t[e]}function MX(e){const t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function zX(e){let{currentUploads:t}=this.getState(),r=t[e];const n=r.step||0,o=[...ve(this,ru)[ru],...ve(this,nu)[nu],...ve(this,qo)[qo]];try{for(let a=n;a<o.length&&r;a++){const u=o[a],s={...r,step:a};this.setState({currentUploads:{...t,[e]:s}}),await u(s.fileIDs,e),t=this.getState().currentUploads,r=t[e]}}catch(a){throw this.emit("error",a),ve(this,ou)[ou](e),a}if(r){r.fileIDs.forEach(l=>{const c=this.getFile(l);c&&c.progress.postprocess&&this.emit("postprocess-complete",c)});const a=r.fileIDs.map(l=>this.getFile(l)),u=a.filter(l=>!l.error),s=a.filter(l=>l.error);await this.addResultData(e,{successful:u,failed:s,uploadID:e}),t=this.getState().currentUploads,r=t[e]}let i;return r&&(i=r.result,this.emit("complete",i),ve(this,ou)[ou](e)),i==null&&this.log(`Not setting result for an upload that has been removed: ${e}`),i}v9.VERSION="2.1.3";var m9=v9,VX=Ra(function(e,t){var r,n,o,i,a,u,s,l,c={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function d(F,O){for(var j in O)F[j]=O[j];return F}function v(F){var O=F.parentNode;O&&O.removeChild(F)}function m(F,O,j){var N,q,G,te={};for(G in O)G=="key"?N=O[G]:G=="ref"?q=O[G]:te[G]=O[G];if(arguments.length>2&&(te.children=arguments.length>3?r.call(arguments,2):j),typeof F=="function"&&F.defaultProps!=null)for(G in F.defaultProps)te[G]===void 0&&(te[G]=F.defaultProps[G]);return g(F,te,N,q,null)}function g(F,O,j,N,q){var G={type:F,props:O,key:j,ref:N,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:q??++o};return q==null&&n.vnode!=null&&n.vnode(G),G}function y(F){return F.children}function h(F,O){this.props=F,this.context=O}function b(F,O){if(O==null)return F.__?b(F.__,F.__.__k.indexOf(F)+1):null;for(var j;O<F.__k.length;O++)if((j=F.__k[O])!=null&&j.__e!=null)return j.__e;return typeof F.type=="function"?b(F):null}function w(F){var O,j;if((F=F.__)!=null&&F.__c!=null){for(F.__e=F.__c.base=null,O=0;O<F.__k.length;O++)if((j=F.__k[O])!=null&&j.__e!=null){F.__e=F.__c.base=j.__e;break}return w(F)}}function x(F){(!F.__d&&(F.__d=!0)&&a.push(F)&&!A.__r++||s!==n.debounceRendering)&&((s=n.debounceRendering)||u)(A)}function A(){for(var F;A.__r=a.length;)F=a.sort(function(O,j){return O.__v.__b-j.__v.__b}),a=[],F.some(function(O){var j,N,q,G,te,fe;O.__d&&(te=(G=(j=O).__v).__e,(fe=j.__P)&&(N=[],(q=d({},G)).__v=G.__v+1,z(fe,G,q,j.__n,fe.ownerSVGElement!==void 0,G.__h!=null?[te]:null,N,te??b(G),G.__h),k(N,G),G.__e!=te&&w(G)))})}function S(F,O,j,N,q,G,te,fe,de,he){var J,xe,be,ce,Fe,_t,qe,tt=N&&N.__k||f,bt=tt.length;for(j.__k=[],J=0;J<O.length;J++)if((ce=j.__k[J]=(ce=O[J])==null||typeof ce=="boolean"?null:typeof ce=="string"||typeof ce=="number"||typeof ce=="bigint"?g(null,ce,null,null,ce):Array.isArray(ce)?g(y,{children:ce},null,null,null):ce.__b>0?g(ce.type,ce.props,ce.key,null,ce.__v):ce)!=null){if(ce.__=j,ce.__b=j.__b+1,(be=tt[J])===null||be&&ce.key==be.key&&ce.type===be.type)tt[J]=void 0;else for(xe=0;xe<bt;xe++){if((be=tt[xe])&&ce.key==be.key&&ce.type===be.type){tt[xe]=void 0;break}be=null}z(F,ce,be=be||c,q,G,te,fe,de,he),Fe=ce.__e,(xe=ce.ref)&&be.ref!=xe&&(qe||(qe=[]),be.ref&&qe.push(be.ref,null,ce),qe.push(xe,ce.__c||Fe,ce)),Fe!=null?(_t==null&&(_t=Fe),typeof ce.type=="function"&&ce.__k===be.__k?ce.__d=de=B(ce,de,F):de=P(F,ce,be,tt,Fe,de),typeof j.type=="function"&&(j.__d=de)):de&&be.__e==de&&de.parentNode!=F&&(de=b(be))}for(j.__e=_t,J=bt;J--;)tt[J]!=null&&(typeof j.type=="function"&&tt[J].__e!=null&&tt[J].__e==j.__d&&(j.__d=b(N,J+1)),$(tt[J],tt[J]));if(qe)for(J=0;J<qe.length;J++)Y(qe[J],qe[++J],qe[++J])}function B(F,O,j){for(var N,q=F.__k,G=0;q&&G<q.length;G++)(N=q[G])&&(N.__=F,O=typeof N.type=="function"?B(N,O,j):P(j,N,N,q,N.__e,O));return O}function P(F,O,j,N,q,G){var te,fe,de;if(O.__d!==void 0)te=O.__d,O.__d=void 0;else if(j==null||q!=G||q.parentNode==null)e:if(G==null||G.parentNode!==F)F.appendChild(q),te=null;else{for(fe=G,de=0;(fe=fe.nextSibling)&&de<N.length;de+=2)if(fe==q)break e;F.insertBefore(q,G),te=G}return te!==void 0?te:q.nextSibling}function H(F,O,j){O[0]==="-"?F.setProperty(O,j):F[O]=j==null?"":typeof j!="number"||p.test(O)?j:j+"px"}function U(F,O,j,N,q){var G;e:if(O==="style")if(typeof j=="string")F.style.cssText=j;else{if(typeof N=="string"&&(F.style.cssText=N=""),N)for(O in N)j&&O in j||H(F.style,O,"");if(j)for(O in j)N&&j[O]===N[O]||H(F.style,O,j[O])}else if(O[0]==="o"&&O[1]==="n")G=O!==(O=O.replace(/Capture$/,"")),O=O.toLowerCase()in F?O.toLowerCase().slice(2):O.slice(2),F.l||(F.l={}),F.l[O+G]=j,j?N||F.addEventListener(O,G?C:W,G):F.removeEventListener(O,G?C:W,G);else if(O!=="dangerouslySetInnerHTML"){if(q)O=O.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if(O!=="href"&&O!=="list"&&O!=="form"&&O!=="tabIndex"&&O!=="download"&&O in F)try{F[O]=j??"";break e}catch{}typeof j=="function"||(j!=null&&(j!==!1||O[0]==="a"&&O[1]==="r")?F.setAttribute(O,j):F.removeAttribute(O))}}function W(F){this.l[F.type+!1](n.event?n.event(F):F)}function C(F){this.l[F.type+!0](n.event?n.event(F):F)}function z(F,O,j,N,q,G,te,fe,de){var he,J,xe,be,ce,Fe,_t,qe,tt,bt,Dr,ze=O.type;if(O.constructor!==void 0)return null;j.__h!=null&&(de=j.__h,fe=O.__e=j.__e,O.__h=null,G=[fe]),(he=n.__b)&&he(O);try{e:if(typeof ze=="function"){if(qe=O.props,tt=(he=ze.contextType)&&N[he.__c],bt=he?tt?tt.props.value:he.__:N,j.__c?_t=(J=O.__c=j.__c).__=J.__E:("prototype"in ze&&ze.prototype.render?O.__c=J=new ze(qe,bt):(O.__c=J=new h(qe,bt),J.constructor=ze,J.render=ee),tt&&tt.sub(J),J.props=qe,J.state||(J.state={}),J.context=bt,J.__n=N,xe=J.__d=!0,J.__h=[]),J.__s==null&&(J.__s=J.state),ze.getDerivedStateFromProps!=null&&(J.__s==J.state&&(J.__s=d({},J.__s)),d(J.__s,ze.getDerivedStateFromProps(qe,J.__s))),be=J.props,ce=J.state,xe)ze.getDerivedStateFromProps==null&&J.componentWillMount!=null&&J.componentWillMount(),J.componentDidMount!=null&&J.__h.push(J.componentDidMount);else{if(ze.getDerivedStateFromProps==null&&qe!==be&&J.componentWillReceiveProps!=null&&J.componentWillReceiveProps(qe,bt),!J.__e&&J.shouldComponentUpdate!=null&&J.shouldComponentUpdate(qe,J.__s,bt)===!1||O.__v===j.__v){J.props=qe,J.state=J.__s,O.__v!==j.__v&&(J.__d=!1),J.__v=O,O.__e=j.__e,O.__k=j.__k,O.__k.forEach(function(Gr){Gr&&(Gr.__=O)}),J.__h.length&&te.push(J);break e}J.componentWillUpdate!=null&&J.componentWillUpdate(qe,J.__s,bt),J.componentDidUpdate!=null&&J.__h.push(function(){J.componentDidUpdate(be,ce,Fe)})}J.context=bt,J.props=qe,J.state=J.__s,(he=n.__r)&&he(O),J.__d=!1,J.__v=O,J.__P=F,he=J.render(J.props,J.state,J.context),J.state=J.__s,J.getChildContext!=null&&(N=d(d({},N),J.getChildContext())),xe||J.getSnapshotBeforeUpdate==null||(Fe=J.getSnapshotBeforeUpdate(be,ce)),Dr=he!=null&&he.type===y&&he.key==null?he.props.children:he,S(F,Array.isArray(Dr)?Dr:[Dr],O,j,N,q,G,te,fe,de),J.base=O.__e,O.__h=null,J.__h.length&&te.push(J),_t&&(J.__E=J.__=null),J.__e=!1}else G==null&&O.__v===j.__v?(O.__k=j.__k,O.__e=j.__e):O.__e=I(j.__e,O,j,N,q,G,te,de);(he=n.diffed)&&he(O)}catch(Gr){O.__v=null,(de||G!=null)&&(O.__e=fe,O.__h=!!de,G[G.indexOf(fe)]=null),n.__e(Gr,O,j)}}function k(F,O){n.__c&&n.__c(O,F),F.some(function(j){try{F=j.__h,j.__h=[],F.some(function(N){N.call(j)})}catch(N){n.__e(N,j.__v)}})}function I(F,O,j,N,q,G,te,fe){var de,he,J,xe=j.props,be=O.props,ce=O.type,Fe=0;if(ce==="svg"&&(q=!0),G!=null){for(;Fe<G.length;Fe++)if((de=G[Fe])&&"setAttribute"in de==!!ce&&(ce?de.localName===ce:de.nodeType===3)){F=de,G[Fe]=null;break}}if(F==null){if(ce===null)return document.createTextNode(be);F=q?document.createElementNS("http://www.w3.org/2000/svg",ce):document.createElement(ce,be.is&&be),G=null,fe=!1}if(ce===null)xe===be||fe&&F.data===be||(F.data=be);else{if(G=G&&r.call(F.childNodes),he=(xe=j.props||c).dangerouslySetInnerHTML,J=be.dangerouslySetInnerHTML,!fe){if(G!=null)for(xe={},Fe=0;Fe<F.attributes.length;Fe++)xe[F.attributes[Fe].name]=F.attributes[Fe].value;(J||he)&&(J&&(he&&J.__html==he.__html||J.__html===F.innerHTML)||(F.innerHTML=J&&J.__html||""))}if((function(_t,qe,tt,bt,Dr){var ze;for(ze in tt)ze==="children"||ze==="key"||ze in qe||U(_t,ze,null,tt[ze],bt);for(ze in qe)Dr&&typeof qe[ze]!="function"||ze==="children"||ze==="key"||ze==="value"||ze==="checked"||tt[ze]===qe[ze]||U(_t,ze,qe[ze],tt[ze],bt)})(F,be,xe,q,fe),J)O.__k=[];else if(Fe=O.props.children,S(F,Array.isArray(Fe)?Fe:[Fe],O,j,N,q&&ce!=="foreignObject",G,te,G?G[0]:j.__k&&b(j,0),fe),G!=null)for(Fe=G.length;Fe--;)G[Fe]!=null&&v(G[Fe]);fe||("value"in be&&(Fe=be.value)!==void 0&&(Fe!==xe.value||Fe!==F.value||ce==="progress"&&!Fe)&&U(F,"value",Fe,xe.value,!1),"checked"in be&&(Fe=be.checked)!==void 0&&Fe!==F.checked&&U(F,"checked",Fe,xe.checked,!1))}return F}function Y(F,O,j){try{typeof F=="function"?F(O):F.current=O}catch(N){n.__e(N,j)}}function $(F,O,j){var N,q;if(n.unmount&&n.unmount(F),(N=F.ref)&&(N.current&&N.current!==F.__e||Y(N,null,O)),(N=F.__c)!=null){if(N.componentWillUnmount)try{N.componentWillUnmount()}catch(G){n.__e(G,O)}N.base=N.__P=null}if(N=F.__k)for(q=0;q<N.length;q++)N[q]&&$(N[q],O,typeof F.type!="function");j||F.__e==null||v(F.__e),F.__e=F.__d=void 0}function ee(F,O,j){return this.constructor(F,j)}function Q(F,O,j){var N,q,G;n.__&&n.__(F,O),q=(N=typeof j=="function")?null:j&&j.__k||O.__k,G=[],z(O,F=(!N&&j||O).__k=m(y,null,[F]),q||c,c,O.ownerSVGElement!==void 0,!N&&j?[j]:q?null:O.firstChild?r.call(O.childNodes):null,G,!N&&j?j:q?q.__e:O.firstChild,N),k(G,F)}r=f.slice,n={__e:function(F,O){for(var j,N,q;O=O.__;)if((j=O.__c)&&!j.__)try{if((N=j.constructor)&&N.getDerivedStateFromError!=null&&(j.setState(N.getDerivedStateFromError(F)),q=j.__d),j.componentDidCatch!=null&&(j.componentDidCatch(F),q=j.__d),q)return j.__E=j}catch(G){F=G}throw F}},o=0,i=function(F){return F!=null&&F.constructor===void 0},h.prototype.setState=function(F,O){var j;j=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=d({},this.state),typeof F=="function"&&(F=F(d({},j),this.props)),F&&d(j,F),F!=null&&this.__v&&(O&&this.__h.push(O),x(this))},h.prototype.forceUpdate=function(F){this.__v&&(this.__e=!0,F&&this.__h.push(F),x(this))},h.prototype.render=y,a=[],u=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,A.__r=0,l=0,t.Component=h,t.Fragment=y,t.cloneElement=function(F,O,j){var N,q,G,te=d({},F.props);for(G in O)G=="key"?N=O[G]:G=="ref"?q=O[G]:te[G]=O[G];return arguments.length>2&&(te.children=arguments.length>3?r.call(arguments,2):j),g(F.type,te,N||F.key,q||F.ref,null)},t.createContext=function(F,O){var j={__c:O="__cC"+l++,__:F,Consumer:function(N,q){return N.children(q)},Provider:function(N){var q,G;return this.getChildContext||(q=[],(G={})[O]=this,this.getChildContext=function(){return G},this.shouldComponentUpdate=function(te){this.props.value!==te.value&&q.some(x)},this.sub=function(te){q.push(te);var fe=te.componentWillUnmount;te.componentWillUnmount=function(){q.splice(q.indexOf(te),1),fe&&fe.call(te)}}),N.children}};return j.Provider.__=j.Consumer.contextType=j},t.createElement=m,t.createRef=function(){return{current:null}},t.h=m,t.hydrate=function F(O,j){Q(O,j,F)},t.isValidElement=i,t.options=n,t.render=Q,t.toChildArray=function F(O,j){return j=j||[],O==null||typeof O=="boolean"||(Array.isArray(O)?O.some(function(N){F(N,j)}):j.push(O)),j}}),HX=function(e,t){return t===void 0&&(t=document),typeof e=="string"?t.querySelector(e):((r=e)==null?void 0:r.nodeType)===Node.ELEMENT_NODE?e:null;var r},c2=class{constructor(e,t){t===void 0&&(t={}),this.uppy=e,this.opts=t}getPluginState(){const{plugins:e}=this.uppy.getState();return e[this.id]||{}}setPluginState(e){const{plugins:t}=this.uppy.getState();this.uppy.setState({plugins:{...t,[this.id]:{...t[this.id],...e}}})}setOptions(e){this.opts={...this.opts,...e},this.setPluginState(),this.i18nInit()}i18nInit(){const e=new i9([this.defaultLocale,this.uppy.locale,this.opts.locale]);this.i18n=e.translate.bind(e),this.i18nArray=e.translateArray.bind(e),this.setPluginState()}addTarget(){throw new Error("Extend the addTarget method to add your plugin to another plugin's target")}install(){}uninstall(){}render(){throw new Error("Extend the render method to add your plugin to a DOM element")}update(){}afterUpdate(){}};function y9(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var UX=0;function qX(e){return"__private_"+UX+++"_"+e}const{render:b9}=VX;var of=qX("updateUI");class f2 extends c2{constructor(){super(...arguments),Object.defineProperty(this,of,{writable:!0,value:void 0})}mount(t,r){const n=r.id,o=HX(t);if(o){this.isTargetDOMEl=!0;const u=document.createDocumentFragment();return y9(this,of)[of]=(function(s){let l=null,c=null;return function(){for(var f=arguments.length,p=new Array(f),d=0;d<f;d++)p[d]=arguments[d];return c=p,l||(l=Promise.resolve().then(()=>(l=null,s(...c)))),l}})(s=>{this.uppy.getPlugin(this.id)&&(b9(this.render(s),u),this.afterUpdate())}),this.uppy.log(`Installing ${n} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(o.innerHTML=""),b9(this.render(this.uppy.getState()),u),this.el=u.firstElementChild,o.appendChild(u),this.onMount(),this.el}let i;if(typeof t=="object"&&t instanceof f2)i=t;else if(typeof t=="function"){const u=t;this.uppy.iteratePlugins(s=>{if(s instanceof u)return i=s,!1})}if(i)return this.uppy.log(`Installing ${n} to ${i.id}`),this.parent=i,this.el=i.addTarget(r),this.onMount(),this.el;this.uppy.log(`Not installing ${n}`);let a=`Invalid target option given to ${n}.`;throw a+=typeof t=="function"?" The given target is not a Plugin class. Please check that you're not specifying a React Component instead of a plugin. If you are using @uppy/* packages directly, make sure you have only 1 version of @uppy/core installed: run `npm ls @uppy/core` on the command line and verify that all the versions match and are deduped correctly.":"If you meant to target an HTML element, please make sure that the element exists. Check that the <script> tag initializing Uppy is right before the closing </body> tag at the end of the page. (see https://github.com/transloadit/uppy/issues/1042)\n\nIf you meant to target a plugin, please confirm that your `import` statements or `require` calls are correct.",new Error(a)}update(t){var r,n;this.el!=null&&((r=(n=y9(this,of))[of])==null||r.call(n,t))}unmount(){var t;this.isTargetDOMEl&&((t=this.el)==null||t.remove()),this.onUnmount()}onMount(){}onUnmount(){}}var WX=f2;const{debugLogger:GX}=d9;var af=m9,KX=m9,YX=WX,XX=c2,$X=GX;af.Uppy=KX,af.UIPlugin=YX,af.BasePlugin=XX,af.debugLogger=$X;class ZX extends Error{constructor(t,r){r===void 0&&(r=null),super("This looks like a network error, the endpoint might be blocked by an internet provider or a firewall."),this.cause=t,this.isNetworkError=!0,this.request=r}}var d2=ZX,p2=function(){return fetch(...arguments).catch(e=>{throw e.name==="AbortError"?e:new d2(e)})};class JX extends Error{constructor(){super("Authorization required"),this.name="AuthError",this.isAuthError=!0}}var Bg,Oi,lo,Bi,w9,QX=JX;function co(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var e$=0;function h2(e){return"__private_"+e$+++"_"+e}async function g2(e){if(e.status===401)throw new QX;const t=e.json();if(e.status<200||e.status>300){let r=`Failed request with status: ${e.status}. ${e.statusText}`;try{const n=await t;r=n.message?`${r} message: ${n.message}`:r,r=n.requestId?`${r} request-Id: ${n.requestId}`:r}finally{throw new Error(r)}}return t}var E9=(Oi=h2("getPostResponseFunc"),lo=h2("getUrl"),Bi=h2("errorHandler"),w9=Bg=class $z{constructor(t,r){Object.defineProperty(this,Bi,{value:r$}),Object.defineProperty(this,lo,{value:t$}),Object.defineProperty(this,Oi,{writable:!0,value:n=>o=>n?o:this.onReceiveResponse(o)}),this.uppy=t,this.opts=r,this.onReceiveResponse=this.onReceiveResponse.bind(this),this.allowedHeaders=["accept","content-type","uppy-auth-token"],this.preflightDone=!1}get hostname(){const{companion:t}=this.uppy.getState(),r=this.opts.companionUrl;return(t&&t[r]?t[r]:r).replace(/\/$/,"")}headers(){const t=this.opts.companionHeaders||{};return Promise.resolve({...$z.defaultHeaders,...t})}onReceiveResponse(t){const r=this.uppy.getState().companion||{},n=this.opts.companionUrl,{headers:o}=t;return o.has("i-am")&&o.get("i-am")!==r[n]&&this.uppy.setState({companion:{...r,[n]:o.get("i-am")}}),t}preflight(t){return this.preflightDone?Promise.resolve(this.allowedHeaders.slice()):fetch(co(this,lo)[lo](t),{method:"OPTIONS"}).then(r=>(r.headers.has("access-control-allow-headers")&&(this.allowedHeaders=r.headers.get("access-control-allow-headers").split(",").map(n=>n.trim().toLowerCase())),this.preflightDone=!0,this.allowedHeaders.slice())).catch(r=>(this.uppy.log(`[CompanionClient] unable to make preflight request ${r}`,"warning"),this.preflightDone=!0,this.allowedHeaders.slice()))}preflightAndHeaders(t){return Promise.all([this.preflight(t),this.headers()]).then(r=>{let[n,o]=r;return Object.keys(o).forEach(i=>{n.includes(i.toLowerCase())||(this.uppy.log(`[CompanionClient] excluding disallowed header ${i}`),delete o[i])}),o})}get(t,r){return this.preflightAndHeaders(t).then(n=>p2(co(this,lo)[lo](t),{method:"get",headers:n,credentials:this.opts.companionCookiesRule||"same-origin"})).then(co(this,Oi)[Oi](r)).then(g2).catch(co(this,Bi)[Bi]("get",t))}post(t,r,n){const o="post";return this.preflightAndHeaders(t).then(i=>p2(co(this,lo)[lo](t),{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:JSON.stringify(r)})).then(co(this,Oi)[Oi](n)).then(g2).catch(co(this,Bi)[Bi](o,t))}delete(t,r,n){const o="delete";return this.preflightAndHeaders(t).then(i=>p2(`${this.hostname}/${t}`,{method:o,headers:i,credentials:this.opts.companionCookiesRule||"same-origin",body:r?JSON.stringify(r):null})).then(co(this,Oi)[Oi](n)).then(g2).catch(co(this,Bi)[Bi](o,t))}},Bg.VERSION="2.0.4",Bg.defaultHeaders={Accept:"application/json","Content-Type":"application/json","Uppy-Versions":`@uppy/companion-client=${Bg.VERSION}`},w9);function t$(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function r$(e,t){return r=>{var n;if((n=r)==null||!n.isAuthError){const o=new Error(`Could not ${e} ${co(this,lo)[lo](t)}`);o.cause=r,r=o}return Promise.reject(r)}}var n$={setItem:(e,t)=>new Promise(r=>{localStorage.setItem(e,t),r()}),getItem:e=>Promise.resolve(localStorage.getItem(e)),removeItem:e=>new Promise(t=>{localStorage.removeItem(e),t()})},fo,Fi,vn,mr,Fg;let C9,x9;function Ut(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var o$=0;function uf(e){return"__private_"+o$+++"_"+e}var i$=(fo=uf("queued"),Fi=uf("emitter"),vn=uf("isOpen"),mr=uf("socket"),Fg=uf("handleMessage"),C9=Symbol.for("uppy test: getSocket"),x9=Symbol.for("uppy test: getQueued"),class{constructor(e){Object.defineProperty(this,fo,{writable:!0,value:[]}),Object.defineProperty(this,Fi,{writable:!0,value:a9()}),Object.defineProperty(this,vn,{writable:!0,value:!1}),Object.defineProperty(this,mr,{writable:!0,value:void 0}),Object.defineProperty(this,Fg,{writable:!0,value:t=>{try{const r=JSON.parse(t.data);this.emit(r.action,r.payload)}catch(r){console.log(r)}}}),this.opts=e,e&&e.autoOpen===!1||this.open()}get isOpen(){return Ut(this,vn)[vn]}[C9](){return Ut(this,mr)[mr]}[x9](){return Ut(this,fo)[fo]}open(){Ut(this,mr)[mr]=new WebSocket(this.opts.target),Ut(this,mr)[mr].onopen=()=>{for(Ut(this,vn)[vn]=!0;Ut(this,fo)[fo].length>0&&Ut(this,vn)[vn];){const e=Ut(this,fo)[fo].shift();this.send(e.action,e.payload)}},Ut(this,mr)[mr].onclose=()=>{Ut(this,vn)[vn]=!1},Ut(this,mr)[mr].onmessage=Ut(this,Fg)[Fg]}close(){var e;(e=Ut(this,mr)[mr])==null||e.close()}send(e,t){Ut(this,vn)[vn]?Ut(this,mr)[mr].send(JSON.stringify({action:e,payload:t})):Ut(this,fo)[fo].push({action:e,payload:t})}on(e,t){Ut(this,Fi)[Fi].on(e,t)}emit(e,t){Ut(this,Fi)[Fi].emit(e,t)}once(e,t){Ut(this,Fi)[Fi].once(e,t)}}),a$={RequestClient:E9,Provider:class extends E9{constructor(e,t){super(e,t),this.provider=t.provider,this.id=this.provider,this.name=this.opts.name||(r=>r.split("-").map(n=>n.charAt(0).toUpperCase()+n.slice(1)).join(" "))(this.id),this.pluginId=this.opts.pluginId,this.tokenKey=`companion-${this.pluginId}-auth-token`,this.companionKeysParams=this.opts.companionKeysParams,this.preAuthToken=null}headers(){return Promise.all([super.headers(),this.getAuthToken()]).then(e=>{let[t,r]=e;const n={};return r&&(n["uppy-auth-token"]=r),this.companionKeysParams&&(n["uppy-credentials-params"]=btoa(JSON.stringify({params:this.companionKeysParams}))),{...t,...n}})}onReceiveResponse(e){e=super.onReceiveResponse(e);const t=this.uppy.getPlugin(this.pluginId),r=t.getPluginState().authenticated?e.status!==401:e.status<400;return t.setPluginState({authenticated:r}),e}setAuthToken(e){return this.uppy.getPlugin(this.pluginId).storage.setItem(this.tokenKey,e)}getAuthToken(){return this.uppy.getPlugin(this.pluginId).storage.getItem(this.tokenKey)}authUrl(e){return e===void 0&&(e={}),this.preAuthToken&&(e.uppyPreAuthToken=this.preAuthToken),`${this.hostname}/${this.id}/connect?${new URLSearchParams(e)}`}fileUrl(e){return`${this.hostname}/${this.id}/get/${e}`}fetchPreAuthToken(){return this.companionKeysParams?this.post(`${this.id}/preauth/`,{params:this.companionKeysParams}).then(e=>{this.preAuthToken=e.token}).catch(e=>{this.uppy.log(`[CompanionClient] unable to fetch preAuthToken ${e}`,"warning")}):Promise.resolve()}list(e){return this.get(`${this.id}/list/${e||""}`)}logout(){return this.get(`${this.id}/logout`).then(e=>Promise.all([e,this.uppy.getPlugin(this.pluginId).storage.removeItem(this.tokenKey)])).then(e=>{let[t]=e;return t})}static initPlugin(e,t,r){if(e.type="acquirer",e.files=[],r&&(e.opts={...r,...t}),t.serverUrl||t.serverPattern)throw new Error("`serverUrl` and `serverPattern` have been renamed to `companionUrl` and `companionAllowedHosts` respectively in the 0.30.5 release. Please consult the docs (for example, https://uppy.io/docs/instagram/ for the Instagram plugin) and use the updated options.`");if(t.companionAllowedHosts){const n=t.companionAllowedHosts;if(!(typeof n=="string"||Array.isArray(n)||n instanceof RegExp))throw new TypeError(`${e.id}: the option "companionAllowedHosts" must be one of string, Array, RegExp`);e.opts.companionAllowedHosts=n}else/^(?!https?:\/\/).*$/i.test(t.companionUrl)?e.opts.companionAllowedHosts=`https://${t.companionUrl.replace(/^\/\//,"")}`:e.opts.companionAllowedHosts=new URL(t.companionUrl).origin;e.storage=e.opts.storage||n$}},Socket:i$},_i,zs,u$=tu(function(e,t,r){const{progress:n,bytesUploaded:o,bytesTotal:i}=t;n&&(e.uppy.log(`Upload progress: ${n}`),e.uppy.emit("upload-progress",r,{uploader:e,bytesUploaded:o,bytesTotal:i}))},300,{leading:!0,trailing:!0});function sf(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var s$=0;function D9(e){return"__private_"+s$+++"_"+e}var S9=(_i=D9("emitter"),zs=D9("events"),class{constructor(e){Object.defineProperty(this,_i,{writable:!0,value:void 0}),Object.defineProperty(this,zs,{writable:!0,value:[]}),sf(this,_i)[_i]=e}on(e,t){return sf(this,zs)[zs].push([e,t]),sf(this,_i)[_i].on(e,t)}remove(){for(const[e,t]of sf(this,zs)[zs].splice(0))sf(this,_i)[_i].off(e,t)}});function mn(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var l$=0;function _g(e){return"__private_"+l$+++"_"+e}var Ko=_g("aliveTimer"),iu=_g("isDone"),lf=_g("onTimedOut"),au=_g("timeout"),A9=class{constructor(e,t){Object.defineProperty(this,Ko,{writable:!0,value:void 0}),Object.defineProperty(this,iu,{writable:!0,value:!1}),Object.defineProperty(this,lf,{writable:!0,value:void 0}),Object.defineProperty(this,au,{writable:!0,value:void 0}),mn(this,au)[au]=e,mn(this,lf)[lf]=t}progress(){mn(this,iu)[iu]||mn(this,au)[au]>0&&(clearTimeout(mn(this,Ko)[Ko]),mn(this,Ko)[Ko]=setTimeout(mn(this,lf)[lf],mn(this,au)[au]))}done(){mn(this,iu)[iu]||(clearTimeout(mn(this,Ko)[Ko]),mn(this,Ko)[Ko]=null,mn(this,iu)[iu]=!0)}};function qt(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new TypeError("attempted to use private field on non-instance");return e}var c$=0;function uu(e){return"__private_"+c$+++"_"+e}function f$(){return new Error("Cancelled")}var tn=uu("activeRequests"),_r=uu("queuedHandlers"),cf=uu("call"),ff=uu("queueNext"),v2=uu("next"),m2=uu("queue"),y2=uu("dequeue");function d$(e){qt(this,tn)[tn]+=1;let t,r=!1;try{t=e()}catch(n){throw qt(this,tn)[tn]-=1,n}return{abort:()=>{r||(r=!0,qt(this,tn)[tn]-=1,t(),qt(this,ff)[ff]())},done:()=>{r||(r=!0,qt(this,tn)[tn]-=1,qt(this,ff)[ff]())}}}function p$(){queueMicrotask(()=>qt(this,v2)[v2]())}function h$(){if(qt(this,tn)[tn]>=this.limit||qt(this,_r)[_r].length===0)return;const e=qt(this,_r)[_r].shift(),t=qt(this,cf)[cf](e.fn);e.abort=t.abort,e.done=t.done}function g$(e,t){t===void 0&&(t={});const r={fn:e,priority:t.priority||0,abort:()=>{qt(this,y2)[y2](r)},done:()=>{throw new Error("Cannot mark a queued request as done: this indicates a bug")}},n=qt(this,_r)[_r].findIndex(o=>r.priority>o.priority);return n===-1?qt(this,_r)[_r].push(r):qt(this,_r)[_r].splice(n,0,r),r}function v$(e){const t=qt(this,_r)[_r].indexOf(e);t!==-1&&qt(this,_r)[_r].splice(t,1)}var m$={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,y2,{value:v$}),Object.defineProperty(this,m2,{value:g$}),Object.defineProperty(this,v2,{value:h$}),Object.defineProperty(this,ff,{value:p$}),Object.defineProperty(this,cf,{value:d$}),Object.defineProperty(this,tn,{writable:!0,value:0}),Object.defineProperty(this,_r,{writable:!0,value:[]}),this.limit=typeof e!="number"||e===0?1/0:e}run(e,t){return qt(this,tn)[tn]<this.limit?qt(this,cf)[cf](e):qt(this,m2)[m2](e,t)}wrapPromiseFunction(e,t){var r=this;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];let a;const u=new Promise((s,l)=>{a=r.run(()=>{let c,f;try{f=Promise.resolve(e(...o))}catch(p){f=Promise.reject(p)}return f.then(p=>{c?l(c):(a.done(),s(p))},p=>{c?l(c):(a.done(),l(p))}),()=>{c=f$()}},t)});return u.abort=()=>{a.abort()},u}}},internalRateLimitedQueue:Symbol("__queue")},k9,O9,B9=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},y$={strings:{timedOut:"Upload stalled for %{seconds} seconds, aborting."}};const{nanoid:b$}=p9,{Provider:w$,RequestClient:E$,Socket:C$}=a$,{RateLimitedQueue:x$,internalRateLimitedQueue:b2}=m$;function F9(e,t){let r=t;return r||(r=new Error("Upload error")),typeof r=="string"&&(r=new Error(r)),r instanceof Error||(r=Object.assign(new Error("Upload error"),{data:r})),B9(e)?(r=new d2(r,e),r):(r.request=e,r)}function _9(e){return e.data.slice(0,e.data.size,e.meta.type)}var D$=(O9=k9=class extends c2{constructor(e,t){super(e,t),this.type="uploader",this.id=this.opts.id||"XHRUpload",this.title="XHRUpload",this.defaultLocale=y$;const r={formData:!0,fieldName:t.bundle?"files[]":"file",method:"post",metaFields:null,responseUrlFieldName:"url",bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:"",getResponseData(n){let o={};try{o=JSON.parse(n)}catch(i){e.log(i)}return o},getResponseError(n,o){let i=new Error("Upload error");return B9(o)&&(i=new d2(i,o)),i},validateStatus:n=>n>=200&&n<300};if(this.opts={...r,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),b2 in this.opts?this.requests=this.opts[b2]:this.requests=new x$(this.opts.limit),this.opts.bundle&&!this.opts.formData)throw new Error("`opts.formData` must be true when `opts.bundle` is enabled.");this.uploaderEvents=Object.create(null)}getOptions(e){const t=this.uppy.getState().xhrUpload,{headers:r}=this.opts,n={...this.opts,...t||{},...e.xhrUpload||{},headers:{}};return typeof r=="function"?n.headers=r(e):Object.assign(n.headers,this.opts.headers),t&&Object.assign(n.headers,t.headers),e.xhrUpload&&Object.assign(n.headers,e.xhrUpload.headers),n}addMetadata(e,t,r){(Array.isArray(r.metaFields)?r.metaFields:Object.keys(t)).forEach(n=>{e.append(n,t[n])})}createFormDataUpload(e,t){const r=new FormData;this.addMetadata(r,e.meta,t);const n=_9(e);return e.name?r.append(t.fieldName,n,e.meta.name):r.append(t.fieldName,n),r}createBundledUpload(e,t){const r=new FormData,{meta:n}=this.uppy.getState();return this.addMetadata(r,n,t),e.forEach(o=>{const i=this.getOptions(o),a=_9(o);o.name?r.append(i.fieldName,a,o.name):r.append(i.fieldName,a)}),r}upload(e,t,r){const n=this.getOptions(e);return this.uppy.log(`uploading ${t} of ${r}`),new Promise((o,i)=>{this.uppy.emit("upload-started",e);const a=n.formData?this.createFormDataUpload(e,n):e.data,u=new XMLHttpRequest;this.uploaderEvents[e.id]=new S9(this.uppy);const s=new A9(n.timeout,()=>{u.abort(),c.done();const f=new Error(this.i18n("timedOut",{seconds:Math.ceil(n.timeout/1e3)}));this.uppy.emit("upload-error",e,f),i(f)}),l=b$();u.upload.addEventListener("loadstart",()=>{this.uppy.log(`[XHRUpload] ${l} started`)}),u.upload.addEventListener("progress",f=>{this.uppy.log(`[XHRUpload] ${l} progress: ${f.loaded} / ${f.total}`),s.progress(),f.lengthComputable&&this.uppy.emit("upload-progress",e,{uploader:this,bytesUploaded:f.loaded,bytesTotal:f.total})}),u.addEventListener("load",f=>{if(this.uppy.log(`[XHRUpload] ${l} finished`),s.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n.validateStatus(f.target.status,u.responseText,u)){const m=n.getResponseData(u.responseText,u),g=m[n.responseUrlFieldName],y={status:f.target.status,body:m,uploadURL:g};return this.uppy.emit("upload-success",e,y),g&&this.uppy.log(`Download ${e.name} from ${g}`),o(e)}const p=n.getResponseData(u.responseText,u),d=F9(u,n.getResponseError(u.responseText,u)),v={status:f.target.status,body:p};return this.uppy.emit("upload-error",e,d,v),i(d)}),u.addEventListener("error",()=>{this.uppy.log(`[XHRUpload] ${l} errored`),s.done(),c.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null);const f=F9(u,n.getResponseError(u.responseText,u));return this.uppy.emit("upload-error",e,f),i(f)}),u.open(n.method.toUpperCase(),n.endpoint,!0),u.withCredentials=n.withCredentials,n.responseType!==""&&(u.responseType=n.responseType);const c=this.requests.run(()=>{this.uppy.emit("upload-started",e);const f=this.getOptions(e);return Object.keys(f.headers).forEach(p=>{u.setRequestHeader(p,f.headers[p])}),u.send(a),()=>{s.done(),u.abort()}});this.onFileRemove(e.id,()=>{c.abort(),i(new Error("File removed"))}),this.onCancelAll(e.id,()=>{c.abort(),i(new Error("Upload cancelled"))})})}uploadRemote(e){const t=this.getOptions(e);return new Promise((r,n)=>{this.uppy.emit("upload-started",e);const o={};(Array.isArray(t.metaFields)?t.metaFields:Object.keys(e.meta)).forEach(i=>{o[i]=e.meta[i]}),new(e.remote.providerOptions.provider?w$:E$)(this.uppy,e.remote.providerOptions).post(e.remote.url,{...e.remote.body,endpoint:t.endpoint,size:e.data.size,fieldname:t.fieldName,metadata:o,httpMethod:t.method,useFormData:t.formData,headers:t.headers}).then(i=>{const{token:a}=i,u=(function(c){const f=/^(?:https?:\/\/|\/\/)?(?:[^@\n]+@)?(?:www\.)?([^\n]+)/i.exec(c)[1];return`${/^http:\/\//i.test(c)?"ws":"wss"}://${f}`})(e.remote.companionUrl),s=new C$({target:`${u}/api/${a}`,autoOpen:!1});this.uploaderEvents[e.id]=new S9(this.uppy),this.onFileRemove(e.id,()=>{s.send("cancel",{}),l.abort(),r(`upload ${e.id} was removed`)}),this.onCancelAll(e.id,()=>{s.send("cancel",{}),l.abort(),r(`upload ${e.id} was canceled`)}),this.onRetry(e.id,()=>{s.send("pause",{}),s.send("resume",{})}),this.onRetryAll(e.id,()=>{s.send("pause",{}),s.send("resume",{})}),s.on("progress",c=>u$(this,c,e)),s.on("success",c=>{const f=t.getResponseData(c.response.responseText,c.response),p=f[t.responseUrlFieldName],d={status:c.response.status,body:f,uploadURL:p};return this.uppy.emit("upload-success",e,d),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),r()}),s.on("error",c=>{const f=c.response,p=f?t.getResponseError(f.responseText,f):Object.assign(new Error(c.error.message),{cause:c.error});this.uppy.emit("upload-error",e,p),l.done(),this.uploaderEvents[e.id]&&(this.uploaderEvents[e.id].remove(),this.uploaderEvents[e.id]=null),n(p)});const l=this.requests.run(()=>(s.open(),e.isPaused&&s.send("pause",{}),()=>s.close()))}).catch(i=>{this.uppy.emit("upload-error",e,i),n(i)})})}uploadBundle(e){return new Promise((t,r)=>{const{endpoint:n}=this.opts,{method:o}=this.opts,i=this.uppy.getState().xhrUpload,a=this.createBundledUpload(e,{...this.opts,...i||{}}),u=new XMLHttpRequest,s=new A9(this.opts.timeout,()=>{u.abort();const c=new Error(this.i18n("timedOut",{seconds:Math.ceil(this.opts.timeout/1e3)}));l(c),r(c)}),l=c=>{e.forEach(f=>{this.uppy.emit("upload-error",f,c)})};u.upload.addEventListener("loadstart",()=>{this.uppy.log("[XHRUpload] started uploading bundle"),s.progress()}),u.upload.addEventListener("progress",c=>{s.progress(),c.lengthComputable&&e.forEach(f=>{this.uppy.emit("upload-progress",f,{uploader:this,bytesUploaded:c.loaded/c.total*f.size,bytesTotal:f.size})})}),u.addEventListener("load",c=>{if(s.done(),this.opts.validateStatus(c.target.status,u.responseText,u)){const p=this.opts.getResponseData(u.responseText,u),d={status:c.target.status,body:p};return e.forEach(v=>{this.uppy.emit("upload-success",v,d)}),t()}const f=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return f.request=u,l(f),r(f)}),u.addEventListener("error",()=>{s.done();const c=this.opts.getResponseError(u.responseText,u)||new Error("Upload error");return l(c),r(c)}),this.uppy.on("cancel-all",()=>{s.done(),u.abort()}),u.open(o.toUpperCase(),n,!0),u.withCredentials=this.opts.withCredentials,this.opts.responseType!==""&&(u.responseType=this.opts.responseType),Object.keys(this.opts.headers).forEach(c=>{u.setRequestHeader(c,this.opts.headers[c])}),u.send(a),e.forEach(c=>{this.uppy.emit("upload-started",c)})})}uploadFiles(e){const t=e.map((r,n)=>{const o=parseInt(n,10)+1,i=e.length;return r.error?Promise.reject(new Error(r.error)):r.isRemote?this.uploadRemote(r,o,i):this.upload(r,o,i)});return(function(r){const n=[],o=[];function i(u){n.push(u)}function a(u){o.push(u)}return Promise.all(r.map(u=>u.then(i,a))).then(()=>({successful:n,failed:o}))})(t)}onFileRemove(e,t){this.uploaderEvents[e].on("file-removed",r=>{e===r.id&&t(r.id)})}onRetry(e,t){this.uploaderEvents[e].on("upload-retry",r=>{e===r&&t()})}onRetryAll(e,t){this.uploaderEvents[e].on("retry-all",()=>{this.uppy.getFile(e)&&t()})}onCancelAll(e,t){this.uploaderEvents[e].on("cancel-all",()=>{this.uppy.getFile(e)&&t()})}handleUpload(e){if(e.length===0)return this.uppy.log("[XHRUpload] No files to upload!"),Promise.resolve();this.opts.limit!==0||this.opts[b2]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0","warning"),this.uppy.log("[XHRUpload] Uploading...");const t=e.map(r=>this.uppy.getFile(r));if(this.opts.bundle){if(t.some(r=>r.isRemote))throw new Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers=="function")throw new TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then(()=>null)}install(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){const{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},k9.VERSION="2.0.6",O9),T9=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function df(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ti,Tg,Pg=function(e){return e&&e.Math==Math&&e},re=Pg(typeof globalThis=="object"&&globalThis)||Pg(typeof window=="object"&&window)||Pg(typeof self=="object"&&self)||Pg(typeof T9=="object"&&T9)||(function(){return this})()||Function("return this")(),S$=Object.defineProperty,w2=function(e,t){try{S$(re,e,{value:t,configurable:!0,writable:!0})}catch{re[e]=t}return t},Pi=re["__core-js_shared__"]||w2("__core-js_shared__",{}),E2=df(function(e){(e.exports=function(t,r){return Pi[t]||(Pi[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),P9=Function.prototype,C2=P9.bind,x2=P9.call,A$=C2&&C2.bind(x2),me=C2?function(e){return e&&A$(x2,e)}:function(e){return e&&function(){return x2.apply(e,arguments)}},k$=re.TypeError,yn=function(e){if(e==null)throw k$("Can't call method on "+e);return e},O$=re.Object,ji=function(e){return O$(yn(e))},B$=me({}.hasOwnProperty),jt=Object.hasOwn||function(e,t){return B$(ji(e),t)},F$=0,_$=Math.random(),T$=me(1 .toString),D2=function(e){return"Symbol("+(e===void 0?"":e)+")_"+T$(++F$+_$,36)},ot=function(e){return typeof e=="function"},P$=function(e){return ot(e)?e:void 0},su=function(e,t){return arguments.length<2?P$(re[e]):re[e]&&re[e][t]},Vs=su("navigator","userAgent")||"",j9=re.process,N9=re.Deno,R9=j9&&j9.versions||N9&&N9.version,I9=R9&&R9.v8;I9&&(Tg=(Ti=I9.split("."))[0]>0&&Ti[0]<4?1:+(Ti[0]+Ti[1])),!Tg&&Vs&&(!(Ti=Vs.match(/Edge\/(\d+)/))||Ti[1]>=74)&&(Ti=Vs.match(/Chrome\/(\d+)/))&&(Tg=+Ti[1]);var pf=Tg,Ze=function(e){try{return!!e()}catch{return!0}},S2=!!Object.getOwnPropertySymbols&&!Ze(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&pf&&pf<41}),A2=S2&&!Symbol.sham&&typeof Symbol.iterator=="symbol",hf=E2("wks"),lu=re.Symbol,L9=lu&&lu.for,j$=A2?lu:lu&&lu.withoutSetter||D2,Et=function(e){if(!jt(hf,e)||!S2&&typeof hf[e]!="string"){var t="Symbol."+e;S2&&jt(lu,e)?hf[e]=lu[e]:hf[e]=A2&&L9?L9(t):j$(t)}return hf[e]},M9={};M9[Et("toStringTag")]="z";var k2=String(M9)==="[object z]",nr=!Ze(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),pt=function(e){return typeof e=="object"?e!==null:ot(e)},O2=re.document,N$=pt(O2)&&pt(O2.createElement),gf=function(e){return N$?O2.createElement(e):{}},z9=!nr&&!Ze(function(){return Object.defineProperty(gf("div"),"a",{get:function(){return 7}}).a!=7}),R$=re.String,I$=re.TypeError,Nt=function(e){if(pt(e))return e;throw I$(R$(e)+" is not an object")},vf=Function.prototype.call,We=vf.bind?vf.bind(vf):function(){return vf.apply(vf,arguments)},cu=me({}.isPrototypeOf),L$=re.Object,B2=A2?function(e){return typeof e=="symbol"}:function(e){var t=su("Symbol");return ot(t)&&cu(t.prototype,L$(e))},M$=re.String,jg=function(e){try{return M$(e)}catch{return"Object"}},z$=re.TypeError,Ni=function(e){if(ot(e))return e;throw z$(jg(e)+" is not a function")},fu=function(e,t){var r=e[t];return r==null?void 0:Ni(r)},V$=re.TypeError,H$=re.TypeError,U$=Et("toPrimitive"),F2=function(e){var t=(function(r,n){if(!pt(r)||B2(r))return r;var o,i=fu(r,U$);if(i){if(o=We(i,r,n),!pt(o)||B2(o))return o;throw H$("Can't convert object to primitive value")}return(function(a,u){var s,l;if(ot(s=a.toString)&&!pt(l=We(s,a))||ot(s=a.valueOf)&&!pt(l=We(s,a)))return l;throw V$("Can't convert object to primitive value")})(r)})(e,"string");return B2(t)?t:t+""},q$=re.TypeError,V9=Object.defineProperty,Mn={f:nr?V9:function(e,t,r){if(Nt(e),t=F2(t),Nt(r),z9)try{return V9(e,t,r)}catch{}if("get"in r||"set"in r)throw q$("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},Ng=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},zn=nr?function(e,t,r){return Mn.f(e,t,Ng(1,r))}:function(e,t,r){return e[t]=r,e},W$=me(Function.toString);ot(Pi.inspectSource)||(Pi.inspectSource=function(e){return W$(e)});var Rg,mf,Ig,Lg=Pi.inspectSource,H9=re.WeakMap,U9=ot(H9)&&/native code/.test(Lg(H9)),q9=E2("keys"),_2=function(e){return q9[e]||(q9[e]=D2(e))},Mg={},T2=re.TypeError,G$=re.WeakMap;if(U9||Pi.state){var du=Pi.state||(Pi.state=new G$),K$=me(du.get),W9=me(du.has),Y$=me(du.set);Rg=function(e,t){if(W9(du,e))throw new T2("Object already initialized");return t.facade=e,Y$(du,e,t),t},mf=function(e){return K$(du,e)||{}},Ig=function(e){return W9(du,e)}}else{var Hs=_2("state");Mg[Hs]=!0,Rg=function(e,t){if(jt(e,Hs))throw new T2("Object already initialized");return t.facade=e,zn(e,Hs,t),t},mf=function(e){return jt(e,Hs)?e[Hs]:{}},Ig=function(e){return jt(e,Hs)}}var yr={set:Rg,get:mf,has:Ig,enforce:function(e){return Ig(e)?mf(e):Rg(e,{})},getterFor:function(e){return function(t){var r;if(!pt(t)||(r=mf(t)).type!==e)throw T2("Incompatible receiver, "+e+" required");return r}}},G9=Function.prototype,X$=nr&&Object.getOwnPropertyDescriptor,P2=jt(G9,"name"),Us={EXISTS:P2,PROPER:P2&&(function(){}).name==="something",CONFIGURABLE:P2&&(!nr||nr&&X$(G9,"name").configurable)},zr=df(function(e){var t=Us.CONFIGURABLE,r=yr.get,n=yr.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;ot(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!jt(u,"name")||t&&u.name!==d)&&zn(u,"name",d),(l=n(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==re?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:zn(i,a,u)):f?i[a]=u:w2(a,u)})(Function.prototype,"toString",function(){return ot(this)&&r(this).source||Lg(this)})}),$$=me({}.toString),Z$=me("".slice),Vn=function(e){return Z$($$(e),8,-1)},J$=Et("toStringTag"),Q$=re.Object,eZ=Vn((function(){return arguments})())=="Arguments",zg=k2?Vn:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=Q$(e),J$))=="string"?r:eZ?Vn(t):(n=Vn(t))=="Object"&&ot(t.callee)?"Arguments":n},tZ=k2?{}.toString:function(){return"[object "+zg(this)+"]"};k2||zr(Object.prototype,"toString",tZ,{unsafe:!0});var Vg={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},j2=gf("span").classList,K9=j2&&j2.constructor&&j2.constructor.prototype,Y9=K9===Object.prototype?void 0:K9,X9=me(me.bind),pu=function(e,t){return Ni(e),t===void 0?e:X9?X9(e,t):function(){return e.apply(t,arguments)}},N2=re.Object,rZ=me("".split),Hg=Ze(function(){return!N2("z").propertyIsEnumerable(0)})?function(e){return Vn(e)=="String"?rZ(e,""):N2(e)}:N2,nZ=Math.ceil,oZ=Math.floor,yf=function(e){var t=+e;return t!=t||t===0?0:(t>0?oZ:nZ)(t)},iZ=Math.min,qs=function(e){return e>0?iZ(yf(e),9007199254740991):0},hu=function(e){return qs(e.length)},Ug=Array.isArray||function(e){return Vn(e)=="Array"},$9=function(){},aZ=[],Z9=su("Reflect","construct"),R2=/^\s*(?:class|function)\b/,uZ=me(R2.exec),sZ=!R2.exec($9),bf=function(e){if(!ot(e))return!1;try{return Z9($9,aZ,e),!0}catch{return!1}},qg=!Z9||Ze(function(){var e;return bf(bf.call)||!bf(Object)||!bf(function(){e=!0})||e})?function(e){if(!ot(e))return!1;switch(zg(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return sZ||!!uZ(R2,Lg(e))}:bf,lZ=Et("species"),J9=re.Array,Q9=function(e,t){return new((function(r){var n;return Ug(r)&&(n=r.constructor,(qg(n)&&(n===J9||Ug(n.prototype))||pt(n)&&(n=n[lZ])===null)&&(n=void 0)),n===void 0?J9:n})(e))(t===0?0:t)},ek=me([].push),wf=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,v=ji(s),m=Hg(v),g=pu(l,c),y=hu(m),h=0,b=f||Q9,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(d=g(p=m[h],h,v),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:ek(w,p)}else switch(e){case 4:return!1;case 7:ek(w,p)}return i?-1:n||o?o:w}},Ws={forEach:wf(0),map:wf(1),filter:wf(2),find:wf(5),findIndex:wf(6)},tk=function(e,t){var r=[][e];return!!r&&Ze(function(){r.call(null,t||function(){throw 1},1)})},cZ=Ws.forEach,I2=tk("forEach")?[].forEach:function(e){return cZ(this,e,arguments.length>1?arguments[1]:void 0)},rk=function(e){if(e&&e.forEach!==I2)try{zn(e,"forEach",I2)}catch{e.forEach=I2}};for(var L2 in Vg)Vg[L2]&&rk(re[L2]&&re[L2].prototype);rk(Y9);var nk={}.propertyIsEnumerable,ok=Object.getOwnPropertyDescriptor,fZ=ok&&!nk.call({1:2},1)?function(e){var t=ok(this,e);return!!t&&t.enumerable}:nk,ik={f:fZ},Ri=function(e){return Hg(yn(e))},ak=Object.getOwnPropertyDescriptor,Ef={f:nr?ak:function(e,t){if(e=Ri(e),t=F2(t),z9)try{return ak(e,t)}catch{}if(jt(e,t))return Ng(!We(ik.f,e,t),e[t])}},dZ=Math.max,pZ=Math.min,Gs=function(e,t){var r=yf(e);return r<0?dZ(r+t,0):pZ(r,t)},uk=function(e){return function(t,r,n){var o,i=Ri(t),a=hu(i),u=Gs(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},sk={includes:uk(!0),indexOf:uk(!1)},hZ=sk.indexOf,lk=me([].push),ck=function(e,t){var r,n=Ri(e),o=0,i=[];for(r in n)!jt(Mg,r)&&jt(n,r)&&lk(i,r);for(;t.length>o;)jt(n,r=t[o++])&&(~hZ(i,r)||lk(i,r));return i},Wg=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],gZ=Wg.concat("length","prototype"),Cf={f:Object.getOwnPropertyNames||function(e){return ck(e,gZ)}},fk={f:Object.getOwnPropertySymbols},vZ=me([].concat),mZ=su("Reflect","ownKeys")||function(e){var t=Cf.f(Nt(e)),r=fk.f;return r?vZ(t,r(e)):t},yZ=function(e,t){for(var r=mZ(t),n=Mn.f,o=Ef.f,i=0;i<r.length;i++){var a=r[i];jt(e,a)||n(e,a,o(t,a))}},bZ=/#|\.prototype\./,xf=function(e,t){var r=EZ[wZ(e)];return r==xZ||r!=CZ&&(ot(t)?Ze(t):!!t)},wZ=xf.normalize=function(e){return String(e).replace(bZ,".").toLowerCase()},EZ=xf.data={},CZ=xf.NATIVE="N",xZ=xf.POLYFILL="P",Df=xf,DZ=Ef.f,Ct=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?re:l?re[u]||w2(u,{}):(re[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=DZ(r,n))&&a.value:r[n],!Df(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;yZ(i,o)}(e.sham||o&&o.sham)&&zn(i,"sham",!0),zr(r,n,i,e)}},Ks=Object.keys||function(e){return ck(e,Wg)},SZ=Ze(function(){Ks(1)});function dk(e){return Object.prototype.toString.call(e)==="[object Object]"}Ct({target:"Object",stat:!0,forced:SZ},{keys:function(e){return Ks(ji(e))}});var AZ={isHistory(e){return dk(t=e)!==!1&&((r=t.constructor)===void 0||dk(n=r.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1)&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Di.isOperationList(e.redos[0]))&&(e.undos.length===0||Di.isOperationList(e.undos[0]));var t,r,n}},M2=new WeakMap,z2=new WeakMap,Ys={isHistoryEditor:e=>AZ.isHistory(e.history)&&D.isEditor(e),isMerging:e=>z2.get(e),isSaving:e=>M2.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var r=Ys.isMerging(e);z2.set(e,!1),t(),z2.set(e,r)},withoutSaving(e,t){var r=Ys.isSaving(e);M2.set(e,!1),t(),M2.set(e,r)}},kZ=re.String,ut=function(e){if(zg(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return kZ(e)},V2=function(){var e=Nt(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},OZ=Us.PROPER,H2=RegExp.prototype,pk=H2.toString,BZ=me(V2),FZ=Ze(function(){return pk.call({source:"a",flags:"b"})!="/a/b"}),_Z=OZ&&pk.name!="toString";(FZ||_Z)&&zr(RegExp.prototype,"toString",function(){var e=Nt(this),t=ut(e.source),r=e.flags;return"/"+t+"/"+ut(r===void 0&&cu(H2,e)&&!("flags"in H2)?BZ(e):r)},{unsafe:!0});var Gg,TZ=nr?Object.defineProperties:function(e,t){Nt(e);for(var r,n=Ri(t),o=Ks(t),i=o.length,a=0;i>a;)Mn.f(e,r=o[a++],n[r]);return e},U2=su("document","documentElement"),hk=_2("IE_PROTO"),q2=function(){},gk=function(e){return"<script>"+e+"<\/script>"},vk=function(e){e.write(gk("")),e.close();var t=e.parentWindow.Object;return e=null,t},Kg=function(){try{Gg=new ActiveXObject("htmlfile")}catch{}var e,t;Kg=typeof document<"u"?document.domain&&Gg?vk(Gg):((t=gf("iframe")).style.display="none",U2.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(gk("document.F=Object")),e.close(),e.F):vk(Gg);for(var r=Wg.length;r--;)delete Kg.prototype[Wg[r]];return Kg()};Mg[hk]=!0;var Yg=Object.create||function(e,t){var r;return e!==null?(q2.prototype=Nt(e),r=new q2,q2.prototype=null,r[hk]=e):r=Kg(),t===void 0?r:TZ(r,t)},W2=Et("unscopables"),G2=Array.prototype;G2[W2]==null&&Mn.f(G2,W2,{configurable:!0,value:Yg(null)});var Sf=function(e){G2[W2][e]=!0},PZ=sk.includes;Ct({target:"Array",proto:!0},{includes:function(e){return PZ(this,e,arguments.length>1?arguments[1]:void 0)}}),Sf("includes");var jZ=Et("match"),K2=function(e){var t;return pt(e)&&((t=e[jZ])!==void 0?!!t:Vn(e)=="RegExp")},NZ=re.TypeError,Y2=function(e){if(K2(e))throw NZ("The method doesn't accept regular expressions");return e},RZ=Et("match"),X2=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[RZ]=!1,"/./"[e](t)}catch{}}return!1},IZ=me("".indexOf);Ct({target:"String",proto:!0,forced:!X2("includes")},{includes:function(e){return!!~IZ(ut(yn(this)),ut(Y2(e)),arguments.length>1?arguments[1]:void 0)}});var LZ=/"/g,MZ=me("".replace);Ct({target:"String",proto:!0,forced:Ze(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,r=ut(yn(this)),n="<a",(n+=' name="'+MZ(ut(t),LZ,"&quot;")+'"')+">"+r+"</a>";var t,r,n}});var $2=function(e,t,r){var n,o;Nt(e);try{if(!(n=fu(e,"return"))){if(t==="throw")throw r;return r}n=We(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return Nt(n),r},zZ=function(e,t,r,n){try{return n?t(Nt(r)[0],r[1]):t(r)}catch(o){$2(e,"throw",o)}},Xs={},VZ=Et("iterator"),HZ=Array.prototype,mk=function(e){return e!==void 0&&(Xs.Array===e||HZ[VZ]===e)},Af=function(e,t,r){var n=F2(t);n in e?Mn.f(e,n,Ng(0,r)):e[n]=r},UZ=Et("iterator"),Z2=function(e){if(e!=null)return fu(e,UZ)||fu(e,"@@iterator")||Xs[zg(e)]},qZ=re.TypeError,yk=function(e,t){var r=arguments.length<2?Z2(e):t;if(Ni(r))return Nt(We(r,e));throw qZ(jg(e)+" is not iterable")},bk=re.Array,wk=Et("iterator"),Ek=!1;try{var WZ=0,Ck={next:function(){return{done:!!WZ++}},return:function(){Ek=!0}};Ck[wk]=function(){return this},Array.from(Ck,function(){throw 2})}catch{}var J2=function(e,t){if(!Ek)return!1;var r=!1;try{var n={};n[wk]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},GZ=!J2(function(e){Array.from(e)});Ct({target:"Array",stat:!0,forced:GZ},{from:function(e){var t=ji(e),r=qg(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=o!==void 0;i&&(o=pu(o,n>2?arguments[2]:void 0));var a,u,s,l,c,f,p=Z2(t),d=0;if(!p||this==bk&&mk(p))for(a=hu(t),u=r?new this(a):bk(a);a>d;d++)f=i?o(t[d],d):t[d],Af(u,d,f);else for(c=(l=yk(t,p)).next,u=r?new this:[];!(s=We(c,l)).done;d++)f=i?zZ(l,o,[s.value,d],!0):s.value,Af(u,d,f);return u.length=d,u}});var gu,xk,Dk,KZ=me("".charAt),Sk=me("".charCodeAt),YZ=me("".slice),XZ=function(e){return function(t,r){var n,o,i=ut(yn(t)),a=yf(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=Sk(i,a))<55296||n>56319||a+1===u||(o=Sk(i,a+1))<56320||o>57343?e?KZ(i,a):n:e?YZ(i,a,a+2):o-56320+(n-55296<<10)+65536}},Ak={charAt:XZ(!0)},$Z=!Ze(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),kk=_2("IE_PROTO"),Q2=re.Object,ZZ=Q2.prototype,Xg=$Z?Q2.getPrototypeOf:function(e){var t=ji(e);if(jt(t,kk))return t[kk];var r=t.constructor;return ot(r)&&t instanceof r?r.prototype:t instanceof Q2?ZZ:null},ew=Et("iterator"),Ok=!1;[].keys&&("next"in(Dk=[].keys())?(xk=Xg(Xg(Dk)))!==Object.prototype&&(gu=xk):Ok=!0);var JZ=gu==null||Ze(function(){var e={};return gu[ew].call(e)!==e});JZ&&(gu={}),ot(gu[ew])||zr(gu,ew,function(){return this});var tw={IteratorPrototype:gu,BUGGY_SAFARI_ITERATORS:Ok},QZ=Mn.f,Bk=Et("toStringTag"),$g=function(e,t,r){e&&!jt(e=r?e:e.prototype,Bk)&&QZ(e,Bk,{configurable:!0,value:t})},eJ=tw.IteratorPrototype,tJ=function(){return this},rJ=re.String,nJ=re.TypeError,$s=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=me(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return Nt(n),(function(i){if(typeof i=="object"||ot(i))return i;throw nJ("Can't set "+rJ(i)+" as a prototype")})(o),t?e(n,o):n.__proto__=o,n}})():void 0),oJ=Us.PROPER,iJ=Us.CONFIGURABLE,Fk=tw.IteratorPrototype,Zg=tw.BUGGY_SAFARI_ITERATORS,kf=Et("iterator"),aJ=function(){return this},rw=function(e,t,r,n,o,i,a){(function(y,h,b,w){var x=h+" Iterator";y.prototype=Yg(eJ,{next:Ng(1,b)}),$g(y,x,!1),Xs[x]=tJ})(r,t,n);var u,s,l,c=function(y){if(y===o&&m)return m;if(!Zg&&y in d)return d[y];switch(y){case"keys":case"values":case"entries":return function(){return new r(this,y)}}return function(){return new r(this)}},f=t+" Iterator",p=!1,d=e.prototype,v=d[kf]||d["@@iterator"]||o&&d[o],m=!Zg&&v||c(o),g=t=="Array"&&d.entries||v;if(g&&(u=Xg(g.call(new e)))!==Object.prototype&&u.next&&(Xg(u)!==Fk&&($s?$s(u,Fk):ot(u[kf])||zr(u,kf,aJ)),$g(u,f,!0)),oJ&&o=="values"&&v&&v.name!=="values"&&(iJ?zn(d,"name","values"):(p=!0,m=function(){return We(v,this)})),o)if(s={values:c("values"),keys:i?m:c("keys"),entries:c("entries")},a)for(l in s)(Zg||p||!(l in d))&&zr(d,l,s[l]);else Ct({target:t,proto:!0,forced:Zg||p},s);return d[kf]!==m&&zr(d,kf,m,{name:o}),Xs[t]=m,s},uJ=Ak.charAt,sJ=yr.set,lJ=yr.getterFor("String Iterator");rw(String,"String",function(e){sJ(this,{type:"String Iterator",string:ut(e),index:0})},function(){var e,t=lJ(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=uJ(r,n),t.index+=e.length,{value:e,done:!1})});var nw,cJ=Ef.f,_k=me("".endsWith),fJ=me("".slice),dJ=Math.min,Tk=X2("endsWith"),pJ=!(Tk||(nw=cJ(String.prototype,"endsWith"),!nw||nw.writable));Ct({target:"String",proto:!0,forced:!pJ&&!Tk},{endsWith:function(e){var t=ut(yn(this));Y2(e);var r=arguments.length>1?arguments[1]:void 0,n=t.length,o=r===void 0?n:dJ(qs(r),n),i=ut(e);return _k?_k(t,i,o):fJ(t,o-i.length,o)===i}});var hJ=me([].join),gJ=Hg!=Object,vJ=tk("join",",");Ct({target:"Array",proto:!0,forced:gJ||!vJ},{join:function(e){return hJ(Ri(this),e===void 0?",":e)}});var mJ=Et("species"),Jg=function(e){return pf>=51||!Ze(function(){var t=[];return(t.constructor={})[mJ]=function(){return{foo:1}},t[e](Boolean).foo!==1})},yJ=Ws.map,bJ=Jg("map");Ct({target:"Array",proto:!0,forced:!bJ},{map:function(e){return yJ(this,e,arguments.length>1?arguments[1]:void 0)}});var ow=re.RegExp,iw=Ze(function(){var e=ow("a","y");return e.lastIndex=2,e.exec("abcd")!=null}),wJ=iw||Ze(function(){return!ow("a","y").sticky}),Qg={BROKEN_CARET:iw||Ze(function(){var e=ow("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),MISSED_STICKY:wJ,UNSUPPORTED_Y:iw},EJ=re.RegExp,aw=Ze(function(){var e=EJ(".","s");return!(e.dotAll&&e.exec(`
16
+ `)&&e.flags==="s")}),CJ=re.RegExp,uw=Ze(function(){var e=CJ("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),xJ=yr.get,DJ=E2("native-string-replace",String.prototype.replace),e0=RegExp.prototype.exec,sw=e0,SJ=me("".charAt),AJ=me("".indexOf),kJ=me("".replace),lw=me("".slice),cw=(function(){var e=/a/,t=/b*/g;return We(e0,e,"a"),We(e0,t,"a"),e.lastIndex!==0||t.lastIndex!==0})(),Pk=Qg.BROKEN_CARET,fw=/()??/.exec("")[1]!==void 0;(cw||fw||Pk||aw||uw)&&(sw=function(e){var t,r,n,o,i,a,u,s=this,l=xJ(s),c=ut(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=We(sw,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=Pk&&s.sticky,v=We(V2,s),m=s.source,g=0,y=c;if(d&&(v=kJ(v,"y",""),AJ(v,"g")===-1&&(v+="g"),y=lw(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&SJ(c,s.lastIndex-1)!==`
17
+ `)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),fw&&(r=new RegExp("^"+m+"$(?!\\s)",v)),cw&&(n=s.lastIndex),o=We(e0,d?r:s,y),d?o?(o.input=lw(o.input,g),o[0]=lw(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:cw&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),fw&&o&&o.length>1&&We(DJ,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=Yg(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Of=sw;Ct({target:"RegExp",proto:!0,forced:/./.exec!==Of},{exec:Of});var dw=Function.prototype,jk=dw.apply,OJ=dw.bind,Nk=dw.call,pw=typeof Reflect=="object"&&Reflect.apply||(OJ?Nk.bind(jk):function(){return Nk.apply(jk,arguments)}),BJ=Et("species"),hw=RegExp.prototype,gw=function(e,t,r,n){var o=Et(e),i=!Ze(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Ze(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[BJ]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=me(/./[o]),s=t(o,""[e],function(l,c,f,p,d){var v=me(l),m=c.exec;return m===Of||m===hw.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:v(f,c,p)}:{done:!1}});zr(String.prototype,e,s[0]),zr(hw,o,s[1])}n&&zn(hw[o],"sham",!0)},FJ=Ak.charAt,vw=function(e,t,r){return t+(r?FJ(e,t).length:1)},_J=Math.floor,mw=me("".charAt),TJ=me("".replace),yw=me("".slice),PJ=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,jJ=/\$([$&'`]|\d{1,2})/g,NJ=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,s=jJ;return o!==void 0&&(o=ji(o),s=PJ),TJ(i,s,function(l,c){var f;switch(mw(c,0)){case"$":return"$";case"&":return e;case"`":return yw(t,0,r);case"'":return yw(t,a);case"<":f=o[yw(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=_J(p/10);return d===0?l:d<=u?n[d-1]===void 0?mw(c,1):n[d-1]+mw(c,1):l}f=n[p-1]}return f===void 0?"":f})},RJ=re.TypeError,Bf=function(e,t){var r=e.exec;if(ot(r)){var n=We(r,e,t);return n!==null&&Nt(n),n}if(Vn(e)==="RegExp")return We(Of,e,t);throw RJ("RegExp#exec called on incompatible receiver")},bw=Et("replace"),IJ=Math.max,LJ=Math.min,MJ=me([].concat),ww=me([].push),Rk=me("".indexOf),Ik=me("".slice),zJ="a".replace(/./,"$0")==="$0",Lk=!!/./[bw]&&/./[bw]("a","$0")==="";gw("replace",function(e,t,r){var n=Lk?"$":"$0";return[function(o,i){var a=yn(this),u=o==null?void 0:fu(o,bw);return u?We(u,o,a,i):We(t,ut(a),o,i)},function(o,i){var a=Nt(this),u=ut(o);if(typeof i=="string"&&Rk(i,n)===-1&&Rk(i,"$<")===-1){var s=r(t,a,u,i);if(s.done)return s.value}var l=ot(i);l||(i=ut(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=Bf(a,u);if(d===null||(ww(p,d),!c))break;ut(d[0])===""&&(a.lastIndex=vw(u,qs(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<p.length;y++){for(var h=ut((d=p[y])[0]),b=IJ(LJ(yf(d.index),u.length),0),w=[],x=1;x<d.length;x++)ww(w,(v=d[x])===void 0?v:String(v));var A=d.groups;if(l){var S=MJ([h],w,b,u);A!==void 0&&ww(S,A);var B=ut(pw(i,void 0,S))}else B=NJ(h,u,b,w,A,i);b>=g&&(m+=Ik(u,g,b)+B,g=b+h.length)}return m+Ik(u,g)}]},!!Ze(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!zJ||Lk);var Ew=function(e,t){return Ew=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Ew(e,t)};function Zs(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Ew(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var bn=function(){return bn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},bn.apply(this,arguments)};function wn(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ue(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function Cw(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}var VJ=0,Mk=function(){this.id=""+VJ++},HJ=yr.set,UJ=yr.getterFor("Array Iterator"),Ff=rw(Array,"Array",function(e,t){HJ(this,{type:"Array Iterator",target:Ri(e),index:0,kind:t})},function(){var e=UJ(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");Xs.Arguments=Xs.Array,Sf("keys"),Sf("values"),Sf("entries");var Js=function(e,t,r){for(var n in t)zr(e,n,t[n],r);return e},qJ=re.Array,WJ=Math.max,xw=function(e,t,r){for(var n=hu(e),o=Gs(t,n),i=Gs(r===void 0?n:r,n),a=qJ(WJ(i-o,0)),u=0;o<i;o++,u++)Af(a,u,e[o]);return a.length=u,a},zk=Cf.f,Vk=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],GJ={f:function(e){return Vk&&Vn(e)=="Window"?(function(t){try{return zk(t)}catch{return xw(Vk)}})(e):zk(Ri(e))}},Hk=Ze(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),t0=Object.isExtensible,vu=Ze(function(){t0(1)})||Hk?function(e){return!!pt(e)&&(!Hk||Vn(e)!="ArrayBuffer")&&(!t0||t0(e))}:t0,KJ=!Ze(function(){return Object.isExtensible(Object.preventExtensions({}))}),r0=df(function(e){var t=Mn.f,r=!1,n=D2("meta"),o=0,i=function(u){t(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var u=Cf.f,s=me([].splice),l={};l[n]=1,u(l).length&&(Cf.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===n){s(f,p,1);break}return f},Ct({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:GJ.f}))},fastKey:function(u,s){if(!pt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!jt(u,n)){if(!vu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!jt(u,n)){if(!vu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return KJ&&r&&vu(u)&&!jt(u,n)&&i(u),u}};Mg[n]=!0}),YJ=re.TypeError,n0=function(e,t){this.stopped=e,this.result=t},Uk=n0.prototype,_f=function(e,t,r){var n,o,i,a,u,s,l,c=r&&r.that,f=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),v=pu(t,c),m=function(y){return n&&$2(n,"normal",y),new n0(!0,y)},g=function(y){return f?(Nt(y),d?v(y[0],y[1],m):v(y[0],y[1])):d?v(y,m):v(y)};if(p)n=e;else{if(!(o=Z2(e)))throw YJ(jg(e)+" is not iterable");if(mk(o)){for(i=0,a=hu(e);a>i;i++)if((u=g(e[i]))&&cu(Uk,u))return u;return new n0(!1)}n=yk(e,o)}for(s=n.next;!(l=We(s,n)).done;){try{u=g(l.value)}catch(y){$2(n,"throw",y)}if(typeof u=="object"&&u&&cu(Uk,u))return u}return new n0(!1)},XJ=re.TypeError,o0=function(e,t){if(cu(t,e))return e;throw XJ("Incorrect invocation")},qk=function(e,t,r){var n,o;return $s&&ot(n=t.constructor)&&n!==r&&pt(o=n.prototype)&&o!==r.prototype&&$s(e,o),e},Wk=function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=re[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=me(u[g]);zr(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!pt(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!pt(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!pt(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(Df(e,!ot(a)||!(o||u.forEach&&!Ze(function(){new a().entries().next()}))))s=r.getConstructor(t,e,n,i),r0.enable();else if(Df(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=Ze(function(){f.has(1)}),v=J2(function(g){new a(g)}),m=!o&&Ze(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});v||((s=t(function(g,y){o0(g,u);var h=qk(new a,g,s);return y!=null&&_f(y,h[i],{that:h,AS_ENTRIES:n}),h})).prototype=u,u.constructor=s),(d||m)&&(c("delete"),c("has"),n&&c("get")),(m||p)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Ct({global:!0,forced:s!=a},l),$g(s,e),o||r.setStrong(s,e,n),s},i0=r0.getWeakData,$J=yr.set,ZJ=yr.getterFor,JJ=Ws.find,QJ=Ws.findIndex,eQ=me([].splice),tQ=0,a0=function(e){return e.frozen||(e.frozen=new Gk)},Gk=function(){this.entries=[]},Dw=function(e,t){return JJ(e.entries,function(r){return r[0]===t})};Gk.prototype={get:function(e){var t=Dw(this,e);if(t)return t[1]},has:function(e){return!!Dw(this,e)},set:function(e,t){var r=Dw(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=QJ(this.entries,function(r){return r[0]===e});return~t&&eQ(this.entries,t,1),!!~t}};var Tf,Kk={getConstructor:function(e,t,r,n){var o=e(function(s,l){o0(s,i),$J(s,{type:t,id:tQ++,frozen:void 0}),l!=null&&_f(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=ZJ(t),u=function(s,l,c){var f=a(s),p=i0(Nt(l),!0);return p===!0?a0(f).set(l,c):p[f.id]=c,s};return Js(i,{delete:function(s){var l=a(this);if(!pt(s))return!1;var c=i0(s);return c===!0?a0(l).delete(s):c&&jt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!pt(s))return!1;var c=i0(s);return c===!0?a0(l).has(s):c&&jt(c,l.id)}}),Js(i,r?{get:function(s){var l=a(this);if(pt(s)){var c=i0(s);return c===!0?a0(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},u0=yr.enforce,rQ=!re.ActiveXObject&&"ActiveXObject"in re,Yk=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},nQ=Wk("WeakMap",Yk,Kk);if(U9&&rQ){Tf=Kk.getConstructor(Yk,"WeakMap",!0),r0.enable();var Pf=nQ.prototype,Xk=me(Pf.delete),s0=me(Pf.has),$k=me(Pf.get),Zk=me(Pf.set);Js(Pf,{delete:function(e){if(pt(e)&&!vu(e)){var t=u0(this);return t.frozen||(t.frozen=new Tf),Xk(this,e)||t.frozen.delete(e)}return Xk(this,e)},has:function(e){if(pt(e)&&!vu(e)){var t=u0(this);return t.frozen||(t.frozen=new Tf),s0(this,e)||t.frozen.has(e)}return s0(this,e)},get:function(e){if(pt(e)&&!vu(e)){var t=u0(this);return t.frozen||(t.frozen=new Tf),s0(this,e)?$k(this,e):t.frozen.get(e)}return $k(this,e)},set:function(e,t){if(pt(e)&&!vu(e)){var r=u0(this);r.frozen||(r.frozen=new Tf),s0(this,e)?Zk(this,e,t):r.frozen.set(e,t)}else Zk(this,e,t);return this}})}var Sw=Et("iterator"),Jk=Et("toStringTag"),Aw=Ff.values,Qk=function(e,t){if(e){if(e[Sw]!==Aw)try{zn(e,Sw,Aw)}catch{e[Sw]=Aw}if(e[Jk]||zn(e,Jk,t),Vg[t]){for(var r in Ff)if(e[r]!==Ff[r])try{zn(e,r,Ff[r])}catch{e[r]=Ff[r]}}}};for(var kw in Vg)Qk(re[kw]&&re[kw].prototype,kw);Qk(Y9,"DOMTokenList");var Ow=new WeakMap,Bw=new WeakMap,Fw=new WeakMap,l0=new WeakMap,_w=new WeakMap,c0=new WeakMap,Tw=new WeakMap,Pw=new WeakMap,f0=new WeakMap,eO=new WeakMap,tO=new WeakMap,rO=new WeakMap,nO=new WeakMap,jf=new WeakMap,Qs=new WeakMap,jw=new WeakMap,d0=new WeakMap,Nw=new WeakMap,p0=new WeakMap,h0=new WeakMap,oO=new WeakMap,mu=new WeakMap,Rw=new WeakMap,iO=new WeakMap,Iw=new WeakMap,oQ=Ws.find,aO=!0;"find"in[]&&Array(1).find(function(){aO=!1}),Ct({target:"Array",proto:!0,forced:aO},{find:function(e){return oQ(this,e,arguments.length>1?arguments[1]:void 0)}}),Sf("find"),Ct({global:!0},{globalThis:re});const iQ=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"];yg&&(T.fn.css=yg),gn&&(T.fn.append=gn),ks&&(T.fn.addClass=ks),Os&&(T.fn.removeClass=Os),Bs&&(T.fn.hasClass=Bs),uo&&(T.fn.on=uo),ki&&(T.fn.focus=ki),hn&&(T.fn.attr=hn),hg&&(T.fn.removeAttr=hg),_s&&(T.fn.hide=_s),mg&&(T.fn.show=mg),h7&&(T.fn.offset=h7),gg&&(T.fn.width=gg),vg&&(T.fn.height=vg),Ts&&(T.fn.parent=Ts),Eg&&(T.fn.parents=Eg),v7&&(T.fn.is=v7),Fs&&(T.fn.dataset=Fs),ao&&(T.fn.val=ao),wg&&(T.fn.text=wg),Ai&&(T.fn.html=Ai),js&&(T.fn.children=js),Ns&&(T.fn.remove=Ns),Ps&&(T.fn.find=Ps),bg&&(T.fn.each=bg),Rs&&(T.fn.empty=Rs);var po,br,Lw=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},Hn=function(e){return yu(e)&&e.nodeType===1},yu=function(e){var t=Lw(e);return!!t&&e instanceof t.Node},uO=function(e){var t=e&&e.anchorNode&&Lw(e.anchorNode);return!!t&&e instanceof t.Selection},sO=function(e){return yu(e)&&e.nodeType===3},Mw=function(e){var t,r,n;return(t=window.document.getElementById(e))!==null&&t!==void 0?t:((n=(r=window.document.activeElement)===null||r===void 0?void 0:r.shadowRoot)===null||n===void 0?void 0:n.getElementById(e))||null},lO=function(e,t,r){for(var n,o=e.childNodes,i=o[t],a=t,u=!1,s=!1;(yu(n=i)&&n.nodeType===8||Hn(i)&&i.childNodes.length===0||Hn(i)&&i.getAttribute("contenteditable")==="false")&&(!u||!s);)a>=o.length?(u=!0,a=t-1,r="backward"):a<0?(s=!0,a=t+1,r="forward"):(i=o[a],t=a,a+=r==="forward"?1:-1);return[i,t]},aQ=function(e,t,r){return Ue(lO(e,t,r),1)[0]},uQ=function e(t){var r,n,o="";if(sO(t)&&t.nodeValue)return t.nodeValue;if(Hn(t)){try{for(var i=wn(Array.from(t.childNodes)),a=i.next();!a.done;a=i.next())o+=e(a.value)}catch(s){r={error:s}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}var u=getComputedStyle(t).getPropertyValue("display");u!=="block"&&u!=="list"&&u!=="table-row"&&t.tagName!=="BR"||(o+=`
18
+ `)}return o};function cO(e,t){if(!(e instanceof HTMLElement&&e.dataset.slateVoid==="true"))for(var r=e.childNodes,n=r.length;n--;){var o=r[n],i=o.nodeType;i==3?t(o,e):i!=1&&i!=9&&i!=11||cO(o,t)}}function fO(e){if(e.length===0)return"";var t=e[0];return t.nodeType!==po.ELEMENT_NODE?"":t.tagName.toLowerCase()}(br=po||(po={}))[br.ELEMENT_NODE=1]="ELEMENT_NODE",br[br.TEXT_NODE=3]="TEXT_NODE",br[br.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",br[br.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",br[br.COMMENT_NODE=8]="COMMENT_NODE",br[br.DOCUMENT_NODE=9]="DOCUMENT_NODE",br[br.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",br[br.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE";var zw=typeof navigator<"u"&&/Mac OS X/.test(navigator.userAgent),Nf=typeof navigator<"u"&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Rf=typeof navigator<"u"&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),sQ=typeof navigator<"u"&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),lQ=typeof navigator<"u"&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),Vw=typeof navigator<"u"&&/Chrome/i.test(navigator.userAgent),If=!lQ&&!sQ&&typeof globalThis<"u"&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges=="function",_={getWindow:function(e){var t=oO.get(e);if(!t)throw new Error("Unable to find a host window element for this editor");return t},findKey:function(e,t){var r=h0.get(t);return r||(r=new Mk,h0.set(t,r)),r},setNewKey:function(e){var t=new Mk;h0.set(e,t)},findPath:function(e,t){for(var r=[],n=t;;){var o=Qs.get(n);if(o==null){if(D.isEditor(n))return r;break}var i=jf.get(n);if(i==null)break;r.unshift(i),n=o}throw new Error("Unable to find the path for Slate node: "+JSON.stringify(t))},findDocumentOrShadowRoot:function(e){if(e.isDestroyed)return window.document;var t=_.toDOMNode(e,e),r=t.getRootNode();return(r instanceof Document||r instanceof ShadowRoot)&&r.getSelection!=null?r:t.ownerDocument},getParentNode:function(e,t){return Qs.get(t)||null},getParentsNodes:function(e,t){for(var r=[],n=t;n!==e&&n!=null;){var o=_.getParentNode(e,n);if(o==null)break;r.push(o),n=o}return r},getTopNode:function(e,t){var r=[_.findPath(e,t)[0]];return oe.get(e,r)},toDOMNode:function(e,t){var r;if(D.isEditor(t))r=jw.get(e);else{var n=_.findKey(e,t);r=Nw.get(n)}if(!r)throw new Error("Cannot resolve a DOM node from Slate node: "+JSON.stringify(t));return r},hasDOMNode:function(e,t,r){r===void 0&&(r={});var n,o=r.editable,i=o!==void 0&&o,a=_.toDOMNode(e,e);try{n=Hn(t)?t:t.parentElement}catch(u){if(!u.message.includes('Permission denied to access property "nodeType"'))throw u}return!!n&&n.closest("[data-slate-editor]")===a&&(!i||n.isContentEditable||!!n.getAttribute("data-slate-zero-width"))},toDOMRange:function(e,t){var r=t.anchor,n=t.focus,o=X.isBackward(t),i=_.toDOMPoint(e,r),a=X.isCollapsed(t)?i:_.toDOMPoint(e,n),u=_.getWindow(e).document.createRange(),s=Ue(o?a:i,2),l=s[0],c=s[1],f=Ue(o?i:a,2),p=f[0],d=f[1],v=!!(Hn(l)?l:l.parentElement).getAttribute("data-slate-zero-width"),m=!!(Hn(p)?p:p.parentElement).getAttribute("data-slate-zero-width");return u.setStart(l,v?1:c),u.setEnd(p,m?1:d),u},toDOMPoint:function(e,t){var r,n,o,i=Ue(D.node(e,t.path),1)[0],a=_.toDOMNode(e,i);D.void(e,{at:t})&&(t={path:t.path,offset:0});var u=Array.from(a.querySelectorAll("[data-slate-string], [data-slate-zero-width]")),s=0;try{for(var l=wn(u),c=l.next();!c.done;c=l.next()){var f=c.value,p=f.childNodes[0];if(p!=null&&p.textContent!=null){var d=p.textContent.length,v=f.getAttribute("data-slate-length"),m=s+(v==null?d:parseInt(v,10));if(t.offset<=m){o=[p,Math.min(d,Math.max(0,t.offset-s))];break}s=m}}}catch(g){r={error:g}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(!o)throw new Error("Cannot resolve a DOM point from Slate point: "+JSON.stringify(t));return o},toSlateNode:function(e,t){var r=Hn(t)?t:t.parentElement;r&&!r.hasAttribute("data-slate-node")&&(r=r.closest("[data-slate-node]"));var n=r?d0.get(r):null;if(!n)throw new Error("Cannot resolve a Slate node from DOM node: "+r);return n},findEventRange:function(e,t){"nativeEvent"in t&&(t=t.nativeEvent);var r=t.clientX,n=t.clientY,o=t.target;if(r==null||n==null)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);var i,a=_.toSlateNode(e,t.target),u=_.findPath(e,a);if(D.isVoid(e,a)){var s=o.getBoundingClientRect(),l=e.isInline(a)?r-s.left<s.left+s.width-r:n-s.top<s.top+s.height-n,c=D.point(e,u,{edge:l?"start":"end"}),f=l?D.before(e,c):D.after(e,c);if(f)return D.range(e,f)}var p=this.getWindow(e).document;if(p.caretRangeFromPoint)i=p.caretRangeFromPoint(r,n);else{var d=p.caretPositionFromPoint(r,n);d&&((i=p.createRange()).setStart(d.offsetNode,d.offset),i.setEnd(d.offsetNode,d.offset))}if(!i)throw new Error("Cannot resolve a Slate range from a DOM event: "+t);return _.toSlateRange(e,i,{exactMatch:!1,suppressThrow:!1})},toSlateRange:function(e,t,r){var n,o,i,a,u,s=r.exactMatch,l=r.suppressThrow;if((uO(t)?t.anchorNode:t.startContainer)&&(uO(t)?(n=t.anchorNode,o=t.anchorOffset,i=t.focusNode,a=t.focusOffset,u=Vw&&window.document.activeElement&&window.document.activeElement.shadowRoot?t.anchorNode===t.focusNode&&t.anchorOffset===t.focusOffset:t.isCollapsed):(n=t.startContainer,o=t.startOffset,i=t.endContainer,a=t.endOffset,u=t.collapsed)),n==null||i==null||o==null||a==null)throw new Error("Cannot resolve a Slate range from DOM range: "+t);var c=_.toSlatePoint(e,[n,o],{exactMatch:s,suppressThrow:l});if(!c)return null;var f=u?c:_.toSlatePoint(e,[i,a],{exactMatch:s,suppressThrow:l});if(!f)return null;var p={anchor:c,focus:f};return X.isExpanded(p)&&X.isForward(p)&&Hn(i)&&D.void(e,{at:p.focus,mode:"highest"})&&(p=D.unhangRange(e,p,{voids:!0})),p},toSlatePoint:function(e,t,r){var n,o=r.exactMatch,i=r.suppressThrow,a=Ue(o?t:(function(h){var b,w=Ue(h,2),x=w[0],A=w[1];if(Hn(x)&&x.childNodes.length){var S=A===x.childNodes.length,B=S?A-1:A;for(x=(b=Ue(lO(x,B,S?"backward":"forward"),2))[0],S=(B=b[1])<A;Hn(x)&&x.childNodes.length;){var P=S?x.childNodes.length-1:0;x=aQ(x,P,S?"backward":"forward")}A=S&&x.textContent!=null?x.textContent.length:0}return[x,A]})(t),2),u=a[0],s=a[1],l=u.parentNode,c=null,f=0;if(l){var p=l.closest('[data-slate-void="true"]'),d=l.closest("[data-slate-leaf]"),v=null;if(d){c=d.closest('[data-slate-node="text"]');var m=_.getWindow(e).document.createRange();m.setStart(c,0),m.setEnd(u,s);var g=m.cloneContents();Cw(Cw([],Ue(l7(g.querySelectorAll("[data-slate-zero-width]")))),Ue(l7(g.querySelectorAll("[contenteditable=false]")))).forEach(function(h){h.parentNode.removeChild(h)}),f=g.textContent.length,v=c}else p&&((d=p.querySelector("[data-slate-leaf]"))?(c=d.closest('[data-slate-node="text"]'),f=(v=d).textContent.length,v.querySelectorAll("[data-slate-zero-width]").forEach(function(h){f-=h.textContent.length})):f=1);v&&f===v.textContent.length&&(l.hasAttribute("data-slate-zero-width")||Nf&&(!((n=v.textContent)===null||n===void 0)&&n.endsWith(`
19
+ `)))&&f--}if(!c){if(i)return null;throw new Error("Cannot resolve a Slate point from DOM point: "+t)}var y=_.toSlateNode(e,c);return{path:_.findPath(e,y),offset:f}},hasRange:function(e,t){var r=t.anchor,n=t.focus;return D.hasPath(e,r.path)&&D.hasPath(e,n.path)},getNodeType:function(e){return ge.isElement(e)?e.type:""},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map(function(t){return oe.string(t)}).join("")},getSelectedElems:function(e){var t,r,n=[],o=D.nodes(e,{universal:!0});try{for(var i=wn(o),a=i.next();!a.done;a=i.next()){var u=Ue(a.value,1)[0];ge.isElement(u)&&n.push(u)}}catch(s){t={error:s}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},getSelectedNodeByType:function(e,t){var r=this,n=Ue(D.nodes(e,{match:function(i){return r.checkNodeType(i,t)},universal:!0}),1),o=n[0];return o==null?null:o[0]},getSelectedTextNode:function(e){var t=Ue(D.nodes(e,{match:function(n){return le.isText(n)},universal:!0}),1),r=t[0];return r==null?null:r[0]},isNodeSelected:function(e,t){var r=Ue(D.nodes(e,{match:function(o){return o===t},universal:!0}),1),n=r[0];return n!=null&&Ue(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var r=e.selection;return!!r&&(D.isEnd(e,r.anchor,t)||D.isEnd(e,r.focus,t))},getTextarea:function(e){var t=Ow.get(e);if(t==null)throw new Error("Cannot find textarea instance by editor");return t},getToolbar:function(e){return l0.get(e)||null},getHoverbar:function(e){return c0.get(e)||null},normalizeContent:function(e){e.children.forEach(function(t,r){e.normalizeNode([t,[r]])})},getLeftLengthOfMaxLength:function(e){var t=e.getConfig(),r=t.maxLength,n=t.onMaxLength;if(typeof r!="number"||r<=0)return 1/0;var o=r-e.getText().replace(/\r|\n|(\r\n)/g,"").length;return o<=0&&n&&n(e),o},cleanExposedTexNodeInSelectionBlock:function(e){var t,r,n,o,i=_.getTextarea(e).$textArea,a=i?.[0].childNodes;if(a)try{for(var u=wn(Array.from(a)),s=u.next();!s.done;s=u.next()){var l=s.value;if(l.nodeType!==3)break;l.remove()}}catch(m){t={error:m}}finally{try{s&&!s.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}var c=D.nodes(e,{match:function(m){return!(!ge.isElement(m)||e.isInline(m))},universal:!0});try{for(var f=wn(c),p=f.next();!p.done;p=f.next()){var d=p.value;if(d!=null){var v=d[0];cO(_.toDOMNode(e,v),function(m,g){var y=T(g);y.attr("data-slate-string")||y.attr("data-slate-zero-width")||y.attr("data-w-e-reserve")||g.removeChild(m)})}}}catch(m){n={error:m}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(n)throw n.error}}},isLastNode:function(e,t){var r=e.children||[];return r[r.length-1]===t},genEmptyParagraph:function(){return{type:"paragraph",children:[{text:""}]}},isSelectedVoidNode:function(e){var t,r,n=D.nodes(e,{match:function(u){return e.isVoid(u)}}),o=0;try{for(var i=wn(n),a=i.next();!a.done;a=i.next())a.value,o++}catch(u){t={error:u}}finally{try{a&&!a.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return o>0},isSelectedEmptyParagraph:function(e){var t=e.selection;if(t==null||X.isExpanded(t))return!1;var r=_.getSelectedNodeByType(e,"paragraph");if(r===null)return!1;var n=r.children;return n.length===1&&(n[0].text===""||void 0)},isEmptyPath:function(e,t){var r=D.node(e,t);if(r==null)return!1;var n=Ue(r,1)[0].children;return n.length===1&&n[0].text===""}},cQ=1,dO={},Lf={},fQ=Ws.filter,dQ=Jg("filter");Ct({target:"Array",proto:!0,forced:!dQ},{filter:function(e){return fQ(this,e,arguments.length>1?arguments[1]:void 0)}});var Hw=`
20
+ \v\f\r                 \u2028\u2029\uFEFF`,pO=me("".replace),g0="["+Hw+"]",pQ=RegExp("^"+g0+g0+"*"),hQ=RegExp(g0+g0+"*$"),gQ=function(e){return function(t){var r=ut(yn(t));return 1&e&&(r=pO(r,pQ,"")),2&e&&(r=pO(r,hQ,"")),r}},vQ={trim:gQ(3)},mQ=Us.PROPER,yQ=vQ.trim;Ct({target:"String",proto:!0,forced:(function(e){return Ze(function(){return!!Hw[e]()||"​…᠎"[e]()!=="​…᠎"||mQ&&Hw[e].name!==e})})("trim")},{trim:function(){return yQ(this)}});var Uw=[],hO={};function bQ(e,t,r){var n=r.isInline(e)?"span":"div";return"<"+n+">"+t+"</"+n+">"}var Mf,el,gO,qw,v0=re.Promise,vO=Et("species"),Ww=function(e){var t=su(e),r=Mn.f;nr&&t&&!t[vO]&&r(t,vO,{configurable:!0,get:function(){return this}})},wQ=re.TypeError,EQ=Et("species"),mO=function(e,t){var r,n=Nt(e).constructor;return n===void 0||(r=Nt(n)[EQ])==null?t:(function(o){if(qg(o))return o;throw wQ(jg(o)+" is not a constructor")})(r)},yO=me([].slice),bO=/(?:ipad|iphone|ipod).*applewebkit/i.test(Vs),Ii=Vn(re.process)=="process",Gw=re.setImmediate,wO=re.clearImmediate,CQ=re.process,Kw=re.Dispatch,xQ=re.Function,EO=re.MessageChannel,DQ=re.String,Yw=0,zf={};try{Mf=re.location}catch{}var Xw=function(e){if(jt(zf,e)){var t=zf[e];delete zf[e],t()}},$w=function(e){return function(){Xw(e)}},CO=function(e){Xw(e.data)},xO=function(e){re.postMessage(DQ(e),Mf.protocol+"//"+Mf.host)};Gw&&wO||(Gw=function(e){var t=yO(arguments,1);return zf[++Yw]=function(){pw(ot(e)?e:xQ(e),void 0,t)},el(Yw),Yw},wO=function(e){delete zf[e]},Ii?el=function(e){CQ.nextTick($w(e))}:Kw&&Kw.now?el=function(e){Kw.now($w(e))}:EO&&!bO?(qw=(gO=new EO).port2,gO.port1.onmessage=CO,el=pu(qw.postMessage,qw)):re.addEventListener&&ot(re.postMessage)&&!re.importScripts&&Mf&&Mf.protocol!=="file:"&&!Ze(xO)?(el=xO,re.addEventListener("message",CO,!1)):el="onreadystatechange"in gf("script")?function(e){U2.appendChild(gf("script")).onreadystatechange=function(){U2.removeChild(this),Xw(e)}}:function(e){setTimeout($w(e),0)});var Vf,bu,Hf,tl,Zw,Jw,Qw,DO,SO={set:Gw},SQ=/ipad|iphone|ipod/i.test(Vs)&&re.Pebble!==void 0,AQ=/web0s(?!.*chrome)/i.test(Vs),kQ=Ef.f,eE=SO.set,AO=re.MutationObserver||re.WebKitMutationObserver,kO=re.document,OO=re.process,m0=re.Promise,BO=kQ(re,"queueMicrotask"),FO=BO&&BO.value;FO||(Vf=function(){var e,t;for(Ii&&(e=OO.domain)&&e.exit();bu;){t=bu.fn,bu=bu.next;try{t()}catch(r){throw bu?tl():Hf=void 0,r}}Hf=void 0,e&&e.enter()},bO||Ii||AQ||!AO||!kO?!SQ&&m0&&m0.resolve?((Qw=m0.resolve(void 0)).constructor=m0,DO=pu(Qw.then,Qw),tl=function(){DO(Vf)}):Ii?tl=function(){OO.nextTick(Vf)}:(eE=pu(eE,re),tl=function(){eE(Vf)}):(Zw=!0,Jw=kO.createTextNode(""),new AO(Vf).observe(Jw,{characterData:!0}),tl=function(){Jw.data=Zw=!Zw}));var tE,_O,TO,PO,jO=FO||function(e){var t={fn:e,next:void 0};Hf&&(Hf.next=t),bu||(bu=t,tl()),Hf=t},OQ=function(e){var t,r;this.promise=new e(function(n,o){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=o}),this.resolve=Ni(t),this.reject=Ni(r)},rE={f:function(e){return new OQ(e)}},nE=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},BQ=typeof window=="object",NO=SO.set,FQ=Et("species"),ho="Promise",RO=yr.getterFor(ho),_Q=yr.set,TQ=yr.getterFor(ho),wu=v0&&v0.prototype,go=v0,Uf=wu,IO=re.TypeError,oE=re.document,iE=re.process,rl=rE.f,PQ=rl,jQ=!!(oE&&oE.createEvent&&re.dispatchEvent),LO=ot(re.PromiseRejectionEvent),MO=!1,qf=Df(ho,function(){var e=Lg(go),t=e!==String(go);if(!t&&pf===66)return!0;if(pf>=51&&/native code/.test(e))return!1;var r=new go(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[FQ]=n,!(MO=r.then(function(){})instanceof n)||!t&&BQ&&!LO}),NQ=qf||!J2(function(e){go.all(e).catch(function(){})}),zO=function(e){var t;return!(!pt(e)||!ot(t=e.then))&&t},aE=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;jO(function(){for(var n=e.value,o=e.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(e.rejection===2&&IQ(e),e.rejection=1),c===!0?a=n:(d&&d.enter(),a=c(n),d&&(d.exit(),s=!0)),a===l.promise?p(IO("Promise-chain cycle")):(u=zO(a))?We(u,a,f,p):f(a)):p(n)}catch(v){d&&!s&&d.exit(),p(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&RQ(e)})}},VO=function(e,t,r){var n,o;jQ?((n=oE.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),re.dispatchEvent(n)):n={promise:t,reason:r},!LO&&(o=re["on"+e])?o(n):e==="unhandledrejection"&&(function(i,a){var u=re.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))})("Unhandled promise rejection",r)},RQ=function(e){We(NO,re,function(){var t,r=e.facade,n=e.value;if(HO(e)&&(t=nE(function(){Ii?iE.emit("unhandledRejection",n,r):VO("unhandledrejection",r,n)}),e.rejection=Ii||HO(e)?2:1,t.error))throw t.value})},HO=function(e){return e.rejection!==1&&!e.parent},IQ=function(e){We(NO,re,function(){var t=e.facade;Ii?iE.emit("rejectionHandled",t):VO("rejectionhandled",t,e.value)})},nl=function(e,t,r){return function(n){e(t,n,r)}},ol=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,aE(e,!0))},uE=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw IO("Promise can't be resolved itself");var n=zO(t);n?jO(function(){var o={done:!1};try{We(n,t,nl(uE,o,e),nl(ol,o,e))}catch(i){ol(o,i,e)}}):(e.value=t,e.state=1,aE(e,!1))}catch(o){ol({done:!1},o,e)}}};if(qf&&(Uf=(go=function(e){o0(this,Uf),Ni(e),We(tE,this);var t=RO(this);try{e(nl(uE,t),nl(ol,t))}catch(r){ol(t,r)}}).prototype,(tE=function(e){_Q(this,{type:ho,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Js(Uf,{then:function(e,t){var r=TQ(this),n=r.reactions,o=rl(mO(this,go));return o.ok=!ot(e)||e,o.fail=ot(t)&&t,o.domain=Ii?iE.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&aE(r,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),_O=function(){var e=new tE,t=RO(e);this.promise=e,this.resolve=nl(uE,t),this.reject=nl(ol,t)},rE.f=rl=function(e){return e===go||e===TO?new _O(e):PQ(e)},ot(v0)&&wu!==Object.prototype)){PO=wu.then,MO||(zr(wu,"then",function(e,t){var r=this;return new go(function(n,o){We(PO,r,n,o)}).then(e,t)},{unsafe:!0}),zr(wu,"catch",Uf.catch,{unsafe:!0}));try{delete wu.constructor}catch{}$s&&$s(wu,Uf)}Ct({global:!0,wrap:!0,forced:qf},{Promise:go}),$g(go,ho,!1),Ww(ho),TO=su(ho),Ct({target:ho,stat:!0,forced:qf},{reject:function(e){var t=rl(this);return We(t.reject,void 0,e),t.promise}}),Ct({target:ho,stat:!0,forced:qf},{resolve:function(e){return(function(t,r){if(Nt(t),pt(r)&&r.constructor===t)return r;var n=rE.f(t);return(0,n.resolve)(r),n.promise})(this,e)}}),Ct({target:ho,stat:!0,forced:NQ},{all:function(e){var t=this,r=rl(t),n=r.resolve,o=r.reject,i=nE(function(){var a=Ni(t.resolve),u=[],s=0,l=1;_f(e,function(c){var f=s++,p=!1;l++,We(a,t,c).then(function(d){p||(p=!0,u[f]=d,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(e){var t=this,r=rl(t),n=r.reject,o=nE(function(){var i=Ni(t.resolve);_f(e,function(a){We(i,t,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var il=Qg.UNSUPPORTED_Y,LQ=Math.min,UO=[].push,MQ=me(/./.exec),al=me(UO),Wf=me("".slice);function En(e){Promise.resolve().then(e)}function qO(e,t){return ge.isElement(e)?(function(r,n){var o=r.type,i=o===void 0?"":o,a=r.children,u=a===void 0?[]:a,s=D.isVoid(n,r),l="";s||(l=u.map(function(y){return qO(y,n)}).join(""));var c=(function(y){return hO[y]||bQ})(i),f=c(r,l,n),p="";if(p=typeof f=="string"?f:f.html||"",s||Uw.forEach(function(y){return p=y(r,p)}),typeof f=="string")return p;var d=f.prefix,v=d===void 0?"":d,m=f.suffix,g=m===void 0?"":m;return v&&(p=v+p),g&&(p+=g),p})(e,t):(function(r,n){var o=r.text;if(o==null)throw new Error("Current node is not slate Text "+JSON.stringify(r));var i=o;i=(function(s){return s.replace(/ {2}/g," &nbsp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/®/g,"&reg;").replace(/©/g,"&copy;").replace(/™/g,"&trade;")})(i);var a=_.getParentsNodes(n,r).some(function(s){return _.getNodeType(s)==="pre"});if(a||(i=i.replace(/\r\n|\r|\n/g,"<br>")),a&&(i=i.replace(/&nbsp;/g," ")),i===""){var u=_.getParentNode(null,r);if(!u||u.children.length!==0)return i;i="<br>"}return Uw.forEach(function(s){return i=s(r,i)}),i})(e,t)}function WO(e){return"w-e-element-"+e}gw("split",function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=ut(yn(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!K2(o))return We(t,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,v=new RegExp(o.source,p+"g");(s=We(Of,v,a))&&!((l=v.lastIndex)>d&&(al(f,Wf(a,d,s.index)),s.length>1&&s.index<a.length&&pw(UO,f,xw(s,1)),c=s[0].length,d=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return d===a.length?!c&&MQ(v,"")||al(f,""):al(f,Wf(a,d)),f.length>u?xw(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:We(t,this,o,i)}:t,[function(o,i){var a=yn(this),u=o==null?void 0:fu(o,e);return u?We(u,o,a,i):We(n,ut(a),o,i)},function(o,i){var a=Nt(this),u=ut(o),s=r(n,a,u,i,n!==t);if(s.done)return s.value;var l=mO(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(il?"g":"y"),p=new l(il?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return Bf(p,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){p.lastIndex=il?0:m;var y,h=Bf(p,il?Wf(u,m):u);if(h===null||(y=LQ(qs(p.lastIndex+(il?m:0)),u.length))===v)m=vw(u,m,c);else{if(al(g,Wf(u,v,m)),g.length===d)return g;for(var b=1;b<=h.length-1;b++)if(al(g,h[b]),g.length===d)return g;m=v=y}}return al(g,Wf(u,v)),g}]},!!Ze(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),il);var GO=function(e,t){var r=(t.top+t.bottom)/2;return e.top<=r&&e.bottom>=r},KO=function(e,t,r){var n=_.toDOMRange(e,t).getBoundingClientRect(),o=_.toDOMRange(e,r).getBoundingClientRect();return GO(n,o)&&GO(o,n)},YO=["span","b","strong","i","em","s","strike","u","font","sub","sup"],XO=[],sE=[],y0={},zQ=Mn.f,VQ=Cf.f,HQ=yr.enforce,UQ=Et("match"),Yo=re.RegExp,ul=Yo.prototype,qQ=re.SyntaxError,WQ=me(V2),GQ=me(ul.exec),b0=me("".charAt),$O=me("".replace),ZO=me("".indexOf),KQ=me("".slice),YQ=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,Eu=/a/g,lE=/a/g,XQ=new Yo(Eu)!==Eu,JO=Qg.MISSED_STICKY,$Q=Qg.UNSUPPORTED_Y,ZQ=nr&&(!XQ||JO||aw||uw||Ze(function(){return lE[UQ]=!1,Yo(Eu)!=Eu||Yo(lE)==lE||Yo(Eu,"i")!="/a/i"}));if(Df("RegExp",ZQ)){for(var Li=function(e,t){var r,n,o,i,a,u,s=cu(ul,this),l=K2(e),c=t===void 0,f=[],p=e;if(!s&&l&&c&&e.constructor===Li)return e;if((l||cu(ul,e))&&(e=e.source,c&&(t="flags"in p?p.flags:WQ(p))),e=e===void 0?"":ut(e),t=t===void 0?"":ut(t),p=e,aw&&"dotAll"in Eu&&(n=!!t&&ZO(t,"s")>-1)&&(t=$O(t,/s/g,"")),r=t,JO&&"sticky"in Eu&&(o=!!t&&ZO(t,"y")>-1)&&$Q&&(t=$O(t,/y/g,"")),uw&&(i=(function(d){for(var v,m=d.length,g=0,y="",h=[],b={},w=!1,x=!1,A=0,S="";g<=m;g++){if((v=b0(d,g))==="\\")v+=b0(d,++g);else if(v==="]")w=!1;else if(!w)switch(!0){case v==="[":w=!0;break;case v==="(":GQ(YQ,KQ(d,g+1))&&(g+=2,x=!0),y+=v,A++;continue;case(v===">"&&x):if(S===""||jt(b,S))throw new qQ("Invalid capture group name");b[S]=!0,h[h.length]=[S,A],x=!1,S="";continue}x?S+=v:y+=v}return[y,h]})(e),e=i[0],f=i[1]),a=qk(Yo(e,t),s?this:ul,Li),(n||o||f.length)&&(u=HQ(a),n&&(u.dotAll=!0,u.raw=Li((function(d){for(var v,m=d.length,g=0,y="",h=!1;g<=m;g++)(v=b0(d,g))!=="\\"?h||v!=="."?(v==="["?h=!0:v==="]"&&(h=!1),y+=v):y+="[\\s\\S]":y+=v+b0(d,++g);return y})(e),r)),o&&(u.sticky=!0),f.length&&(u.groups=f)),e!==p)try{zn(a,"source",p===""?"(?:)":p)}catch{}return a},JQ=function(e){e in Li||zQ(Li,e,{configurable:!0,get:function(){return Yo[e]},set:function(t){Yo[e]=t}})},QO=VQ(Yo),eB=0;QO.length>eB;)JQ(QO[eB++]);ul.constructor=Li,Li.prototype=ul,zr(re,"RegExp",Li)}Ww("RegExp");var QQ=new RegExp(" ","g");function tB(e){return e.replace(QQ," ")}function rB(e,t){var r=e.length;if(r){var n=e[r-1];if(le.isText(n)){var o=Object.keys(n);if(o.length===1&&o[0]==="text")return n.text=n.text+t,!0}}return!1}function eee(e,t,r){return{type:"paragraph",children:[{text:T(e).text().replace(/\s+/gm," ")}]}}function cE(e,t){var r=(function(i,a){var u=[];if(i.attr("data-w-e-is-void")!=null)return u;var s=i[0].childNodes;return s.length===1&&s[0].nodeName==="BR"?(u.push({text:""}),u):(s.forEach(function(l){if(l.nodeType!==po.ELEMENT_NODE){if(l.nodeType===po.TEXT_NODE){var c=l.textContent||"";if(c.trim()===""&&c.indexOf(`
21
+ `)>=0)return;c&&(c=tB(c),rB(u,c)||u.push({text:c}))}}else{if(l.nodeName==="BR")return void(rB(u,`
22
+ `)||u.push({text:`
23
+ `}));var f=dE(T(l),a);Array.isArray(f)?f.forEach(function(p){return u.push(p)}):u.push(f)}}),u)})(e,t),n=(function(i){for(var a in y0)if(i[0].matches(a))return y0[a];return eee})(e),o=n(e[0],r,t);return Array.isArray(o)||(o=[o]),o.forEach(function(i){D.isVoid(t,i)||(r.length===0&&(i.children=[{text:e.text().replace(/\s+/gm," ")}]),sE.forEach(function(a){i=a(e[0],i,t)}))}),o}function fE(e,t){e.parents("pre").length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm," ").replace(/<br>/g,`
24
+ `));var r=e[0].textContent||"";r=(function(o){return o.replace(/&nbsp;/g," ").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&reg;/g,"®").replace(/&copy;/g,"©").replace(/&trade;/g,"™").replace(/&quot;/g,'"')})(r);var n={text:r=tB(r)};return sE.forEach(function(o){n=o(e[0],n,t)}),n}function dE(e,t){XO.forEach(function(n){var o=n.selector,i=n.preParseHtml;e[0].matches(o)&&(e=T(i(e[0])))});var r=fO(e);return r==="span"?e.attr("data-w-e-type")?cE(e,t):fE(e,t):r==="code"?fO(e.parent())==="pre"?cE(e,t):fE(e,t):YO.includes(r)?fE(e,t):cE(e,t)}function nB(e,t,r){var n=T(r);return!!n.attr(t)||(n.attr(t,"true"),e.on("destroyed",function(){n.removeAttr(t)}),!1)}function oB(e,t){t===void 0&&(t="");var r=[];t===""&&(t="<p><br></p>"),t.indexOf("<")!==0&&(t=t.split(/\n/).map(function(o){return"<p>"+o+"</p>"}).join(""));var n=T("<div>"+t+"</div>");return Array.from(n.children()).forEach(function(o){var i=dE(T(o),e);Array.isArray(i)?i.forEach(function(a){return r.push(a)}):r.push(i)}),r}var tee=Mn.f,iB=r0.fastKey,aB=yr.set,pE=yr.getterFor,ree={getConstructor:function(e,t,r,n){var o=e(function(l,c){o0(l,i),aB(l,{type:t,index:Yg(null),first:void 0,last:void 0,size:0}),nr||(l.size=0),c!=null&&_f(c,l[n],{that:l,AS_ENTRIES:r})}),i=o.prototype,a=pE(t),u=function(l,c,f){var p,d,v=a(l),m=s(l,c);return m?m.value=f:(v.last=m={index:d=iB(c,!0),key:c,value:f,previous:p=v.last,next:void 0,removed:!1},v.first||(v.first=m),p&&(p.next=m),nr?v.size++:l.size++,d!=="F"&&(v.index[d]=m)),l},s=function(l,c){var f,p=a(l),d=iB(c);if(d!=="F")return p.index[d];for(f=p.first;f;f=f.next)if(f.key==c)return f};return Js(i,{clear:function(){for(var l=a(this),c=l.index,f=l.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=void 0),delete c[f.index],f=f.next;l.first=l.last=void 0,nr?l.size=0:this.size=0},delete:function(l){var c=this,f=a(c),p=s(c,l);if(p){var d=p.next,v=p.previous;delete f.index[p.index],p.removed=!0,v&&(v.next=d),d&&(d.previous=v),f.first==p&&(f.first=d),f.last==p&&(f.last=v),nr?f.size--:c.size--}return!!p},forEach:function(l){for(var c,f=a(this),p=pu(l,arguments.length>1?arguments[1]:void 0);c=c?c.next:f.first;)for(p(c.value,c.key,this);c&&c.removed;)c=c.previous},has:function(l){return!!s(this,l)}}),Js(i,r?{get:function(l){var c=s(this,l);return c&&c.value},set:function(l,c){return u(this,l===0?0:l,c)}}:{add:function(l){return u(this,l=l===0?0:l,l)}}),nr&&tee(i,"size",{get:function(){return a(this).size}}),o},setStrong:function(e,t,r){var n=t+" Iterator",o=pE(t),i=pE(n);rw(e,t,function(a,u){aB(this,{type:n,target:a,state:o(a),kind:u,last:void 0})},function(){for(var a=i(this),u=a.kind,s=a.last;s&&s.removed;)s=s.previous;return a.target&&(a.last=s=s?s.next:a.state.first)?u=="keys"?{value:s.key,done:!1}:u=="values"?{value:s.value,done:!1}:{value:[s.key,s.value],done:!1}:(a.target=void 0,{value:void 0,done:!0})},r?"entries":"values",!r,!0),Ww(t)}};Wk("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},ree);var uB=new Set(["doctype","!doctype","meta","script","style","link","frame","iframe","title","svg"]);function sB(e,t){e.isInline(t)?(e.insertNode(t),t.type==="link"&&e.insertFragment([{text:""}])):V.insertNodes(e,t,{mode:"highest"})}var nee=function(e){var t=e,r=t.insertText;return t.insertFragment,t.setFragmentData=function(n){var o=t.selection;if(o){var i=Ue(X.edges(o),2),a=i[0],u=i[1],s=D.void(t,{at:a.path}),l=D.void(t,{at:u.path});if(!X.isCollapsed(o)||s){var c=_.toDOMRange(t,o),f=c.cloneContents(),p=f.childNodes[0];if(f.childNodes.forEach(function(x){x.textContent&&x.textContent.trim()!==""&&(p=x)}),l){var d=Ue(l,1)[0],v=c.cloneRange(),m=_.toDOMNode(t,d);v.setEndAfter(m),f=v.cloneContents()}if(s&&(p=f.querySelector("[data-slate-spacer]")),Array.from(f.querySelectorAll("[data-slate-zero-width]")).forEach(function(x){var A=x.getAttribute("data-slate-zero-width")==="n";x.textContent=A?`
25
+ `:""}),sO(p)){var g=p.ownerDocument.createElement("span");g.style.whiteSpace="pre",g.appendChild(p),f.appendChild(g),p=g}var y=t.getFragment(),h=JSON.stringify(y),b=window.btoa(encodeURIComponent(h));p.setAttribute("data-slate-fragment",b),n.setData("application/x-slate-fragment",b);var w=f.ownerDocument.createElement("div");return w.appendChild(f),w.setAttribute("hidden","true"),f.ownerDocument.body.appendChild(w),n.setData("text/html",w.innerHTML),n.setData("text/plain",uQ(w)),f.ownerDocument.body.removeChild(w),n}}},t.insertData=function(n){var o,i,a=n.getData("application/x-slate-fragment");if(a){var u=decodeURIComponent(window.atob(a)),s=JSON.parse(u);t.insertFragment(s)}else{var l=n.getData("text/plain"),c=n.getData("text/html");if(c)t.dangerouslyInsertHtml(c);else if(l){var f=l.split(/\r\n|\r|\n/),p=!1;try{for(var d=wn(f),v=d.next();!v.done;v=d.next()){var m=v.value;p&&V.splitNodes(t,{always:!0}),r(m),p=!0}}catch(g){o={error:g}}finally{try{v&&!v.done&&(i=d.return)&&i.call(d)}finally{if(o)throw o.error}}}}},t},Gf=function(e){return e!=null},oee={object:!0,function:!0,undefined:!0},iee=/^\s*class[\s{/}]/,aee=Function.prototype.toString,lB=function(e){return!!(function(t){if(typeof t!="function"||!hasOwnProperty.call(t,"length"))return!1;try{if(typeof t.length!="number"||typeof t.call!="function"||typeof t.apply!="function")return!1}catch{return!1}return!(function(r){if(!(function(n){return!!Gf(n)&&hasOwnProperty.call(oee,typeof n)})(r))return!1;try{return!!r.constructor&&r.constructor.prototype===r}catch{return!1}})(t)})(e)&&!iee.test(aee.call(e))},hE=function(e){return e!=null},uee=Object.keys,see=(function(){try{return Object.keys("primitive"),!0}catch{return!1}})()?Object.keys:function(e){return uee(hE(e)?Object(e):e)},lee=function(e){if(!hE(e))throw new TypeError("Cannot use null or undefined");return e},cee=Math.max,cB=(function(){var e,t=Object.assign;return typeof t=="function"&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")})()?Object.assign:function(e,t){var r,n,o,i=cee(arguments.length,2);for(e=Object(lee(e)),o=function(a){try{e[a]=t[a]}catch(u){r||(r=u)}},n=1;n<i;++n)see(t=arguments[n]).forEach(o);if(r!==void 0)throw r;return e},fee=Array.prototype.forEach,dee=Object.create,pee=function(e,t){var r;for(r in e)t[r]=e[r]},fB=function(e){var t=dee(null);return fee.call(arguments,function(r){hE(r)&&pee(Object(r),t)}),t},gE="razdwatrzy",hee=String.prototype.indexOf,Kf=typeof gE.contains=="function"&&gE.contains("dwa")===!0&&gE.contains("foo")===!1?String.prototype.contains:function(e){return hee.call(this,e,arguments[1])>-1},w0=df(function(e){var t=e.exports=function(r,n){var o,i,a,u,s;return arguments.length<2||typeof r!="string"?(u=n,n=r,r=null):u=arguments[2],Gf(r)?(o=Kf.call(r,"c"),i=Kf.call(r,"e"),a=Kf.call(r,"w")):(o=a=!0,i=!1),s={value:n,configurable:o,enumerable:i,writable:a},u?cB(fB(u),s):s};t.gs=function(r,n,o){var i,a,u,s;return typeof r!="string"?(u=o,o=n,n=r,r=null):u=arguments[3],Gf(n)?lB(n)?Gf(o)?lB(o)||(u=o,o=void 0):o=void 0:(u=n,n=o=void 0):n=void 0,Gf(r)?(i=Kf.call(r,"c"),a=Kf.call(r,"e")):(i=!0,a=!1),s={get:n,set:o,configurable:i,enumerable:a},u?cB(fB(u),s):s}}),vE=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},gee=df(function(e,t){var r,n,o,i,a,u,s,l=Function.prototype.apply,c=Function.prototype.call,f=Object.create,p=Object.defineProperty,d=Object.defineProperties,v=Object.prototype.hasOwnProperty,m={configurable:!0,enumerable:!1,writable:!0};r=function(g,y){var h;return vE(y),v.call(this,"__ee__")?h=this.__ee__:(h=m.value=f(null),p(this,"__ee__",m),m.value=null),h[g]?typeof h[g]=="object"?h[g].push(y):h[g]=[h[g],y]:h[g]=y,this},n=function(g,y){var h,b;return vE(y),b=this,r.call(this,g,h=function(){o.call(b,g,h),l.call(y,this,arguments)}),h.__eeOnceListener__=y,this},o=function(g,y){var h,b,w,x;if(vE(y),!v.call(this,"__ee__"))return this;if(!(h=this.__ee__)[g])return this;if(typeof(b=h[g])=="object")for(x=0;w=b[x];++x)w!==y&&w.__eeOnceListener__!==y||(b.length===2?h[g]=b[x?0:1]:b.splice(x,1));else b!==y&&b.__eeOnceListener__!==y||delete h[g];return this},i=function(g){var y,h,b,w,x;if(v.call(this,"__ee__")&&(w=this.__ee__[g]))if(typeof w=="object"){for(h=arguments.length,x=new Array(h-1),y=1;y<h;++y)x[y-1]=arguments[y];for(w=w.slice(),y=0;b=w[y];++y)l.call(b,this,x)}else switch(arguments.length){case 1:c.call(w,this);break;case 2:c.call(w,this,arguments[1]);break;case 3:c.call(w,this,arguments[1],arguments[2]);break;default:for(h=arguments.length,x=new Array(h-1),y=1;y<h;++y)x[y-1]=arguments[y];l.call(w,this,x)}},a={on:r,once:n,off:o,emit:i},u={on:w0(r),once:w0(n),off:w0(o),emit:w0(i)},s=d({},u),e.exports=t=function(g){return g==null?f(s):d(Object(g),u)},t.methods=a});function E0(e){var t=iO.get(e);return t==null&&(t=gee(),iO.set(e,t)),t}var C0=new WeakMap;function dB(e,t){var r=C0.get(e);r==null&&(r=new Set,C0.set(e,r)),r.add(t)}function vee(e){return C0.get(e)||new Set}function mee(e){C0.set(e,new Set)}function mE(e){var t=_.getTextarea(e).$textAreaContainer,r=t.width(),n=t.height(),o=t.offset();return{top:o.top,left:o.left,width:r,height:n}}function yE(e){var t={top:"0",left:"0"},r=e.selection;if(r==null)return t;var n=mE(e);if(n==null)return t;var o=n.top,i=n.left,a=n.width,u=n.height,s=_.toDOMRange(e,r).getClientRects()[0];if(s==null)return t;s.width;var l=s.height,c={},f=s.top-o,p=s.left-i;if(p>a/2){var d=a-p;c.right=d+5+"px"}else c.left=p+5+"px";if(f>u/2){var v=u-f;c.bottom=v+5+"px"}else{var m=f+l;m<0&&(m=0),c.top=m+5+"px"}return c}function bE(e,t,r){r===void 0&&(r="modal");var n={top:"0",left:"0"};if(e.selection==null)return n;var o=ge.isElement(t)&&e.isVoid(t),i=ge.isElement(t)&&e.isInline(t),a=p0.get(t);if(a==null)return n;var u=a.getBoundingClientRect(),s=u.top,l=u.left,c=u.height,f=u.width;if(o){var p=(function(S){var B=[];B.push(S);for(var P=0;B.length>0;){var H=B.pop();if(H==null||++P>1e4)break;var U=H.nodeName;if(H.nodeType===1){var W=U.toLowerCase();if(iQ.includes(W)||W==="iframe"||W==="video")return H;var C=H.children||[],z=C.length;if(z)for(var k=z-1;k>=0;k--)B.push(C[k])}}return null})(a);if(p!=null){var d=p.getBoundingClientRect();s=d.top,c=d.height}}var v=mE(e);if(v==null)return n;var m,g=v.top,y=v.left,h=v.width,b=v.height,w={},x=s-g,A=l-y;if(r==="bar")return w.left=A+"px",x>40?w.bottom=b-x+5+"px":w.top=x+c+5+"px",w;if(r==="modal")return o?i?A>(h-f)/2?w.right=h-A+5+"px":w.left=A+f+5+"px":w.left="20px":w.left=A+"px",o?((m=x)<0&&(m=0),w.top=m+"px"):x>(b-c)/2?w.bottom=b-x+5+"px":((m=x+c)<0&&(m=0),w.top=m+5+"px"),w;throw new Error("type '"+r+"' is invalid")}function wE(e,t){En(function(){var r=mE(e);if(r!=null){var n,o=r.top,i=r.left,a=r.width,u=r.height,s=t.offset(),l=s.top,c=s.left,f=t.width(),p=t.height(),d=l-o,v=c-i,m=t.attr("style");if(m.indexOf("top")>=0&&(n=d+p-u)>0){var g=t.css("top"),y=parseInt(g.toString())-n;y<0&&(y=0),t.css("top",y+"px")}if(m.indexOf("bottom")>=0&&l<0){var h=t.css("bottom"),b=parseInt(h.toString())-Math.abs(l);t.css("bottom",b+"px")}if(m.indexOf("left")>=0&&(n=v+f-a)>0){var w=t.css("left"),x=parseInt(w.toString())-n;x<0&&(x=0),t.css("left",x+"px")}if(m.indexOf("right")>=0&&c<0){var A=t.css("right"),S=parseInt(A.toString())-Math.abs(c);t.css("right",S+"px")}}})}var yee=Jg("slice"),bee=Et("species"),EE=re.Array,wee=Math.max;Ct({target:"Array",proto:!0,forced:!yee},{slice:function(e,t){var r,n,o,i=Ri(this),a=hu(i),u=Gs(e,a),s=Gs(t===void 0?a:t,a);if(Ug(i)&&(r=i.constructor,(qg(r)&&(r===EE||Ug(r.prototype))||pt(r)&&(r=r[bee])===null)&&(r=void 0),r===EE||r===void 0))return yO(i,u,s);for(n=new(r===void 0?EE:r)(wee(s-u,0)),o=0;u<s;u++,o++)u in i&&Af(n,o,i[u]);return n.length=o,n}});var Eee=Ef.f,pB=me("".startsWith),Cee=me("".slice),xee=Math.min,hB=X2("startsWith"),Dee=!hB&&!!(function(){var e=Eee(String.prototype,"startsWith");return e&&!e.writable})();Ct({target:"String",proto:!0,forced:!Dee&&!hB},{startsWith:function(e){var t=ut(yn(this));Y2(e);var r=qs(xee(arguments.length>1?arguments[1]:void 0,t.length)),n=ut(e);return pB?pB(t,n,r):Cee(t,r,r+n.length)===n}});var sl=Object.assign,gB=Object.defineProperty,See=me([].concat),vB=!sl||Ze(function(){if(nr&&sl({b:1},sl(gB({},"a",{enumerable:!0,get:function(){gB(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(o){t[o]=o}),sl({},e)[r]!=7||Ks(sl({},t)).join("")!=n})?function(e,t){for(var r=ji(e),n=arguments.length,o=1,i=fk.f,a=ik.f;n>o;)for(var u,s=Hg(arguments[o++]),l=i?See(Ks(s),i(s)):Ks(s),c=l.length,f=0;c>f;)u=l[f++],nr&&!We(a,s,u)||(r[u]=s[u]);return r}:sl;Ct({target:"Object",stat:!0,forced:Object.assign!==vB},{assign:vB});var Aee=["props","attrs","style","dataset","on","hook"];function mB(e){var t=e.data,r=t===void 0?{}:t,n=e.children,o=n===void 0?[]:n;Object.keys(r).forEach(function(i){var a,u,s=r[i];if(i!=="key"){if(!Aee.includes(i)){if(i.startsWith("data-")){var l=i.slice(5);return l=$Y(l),(function(c,f){c.data==null&&(c.data={});var p=c.data;p.dataset==null&&(p.dataset={}),Object.assign(p.dataset,f)})(e,((a={})[l]=s,a)),void delete r[i]}(function(c,f){c.data==null&&(c.data={});var p=c.data;p.props==null&&(p.props={}),Object.assign(p.props,f)})(e,(u={},u[i]=s,u)),delete r[i]}}else e.key=s}),o.length>0&&o.forEach(function(i){typeof i!="string"&&mB(i)})}var CE=[],yB={};function kee(e,t,r){return Ee(r.isInline(e)?"span":"div",null,t)}function bB(e,t){return t===void 0&&(t=!1),Ee("span",{"data-slate-string":!0},t?e+`
26
+ `:e)}function xE(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),Ee("span",{"data-slate-zero-width":t?"n":"z","data-slate-length":e},"\uFEFF",t?Ee("br",null):null)}function DE(e,t,r,n){return jf.set(e,t),Qs.set(e,r),ge.isElement(e)?(function(o,i){var a,u=_.findKey(i,o),s=i.isInline(o),l=D.isVoid(i,o),c=WO(u.id),f={id:c,key:u.id,"data-slate-node":"element","data-slate-inline":s},p=o.type,d=o.children,v=d===void 0?[]:d,m=(function(x){return yB[x]||kee})(p);a=l?null:v.map(function(x,A){return DE(x,A,o,i)});var g=m(o,a,i);if(l){f["data-slate-void"]=!0;var y=s?"span":"div",h=Ue(oe.texts(o),1),b=Ue(h[0],1)[0],w=Ee(y,{"data-slate-spacer":!0,style:{height:"0",color:"transparent",outline:"none",position:"absolute"}},DE(b,0,o,i));g=Ee(y,{style:{position:"relative"}},g,w),jf.set(b,0),Qs.set(b,o)}return g.data==null&&(g.data={}),Object.assign(g.data,f),l||s||(g=(function(x,A){var S=A;return CE.forEach(function(B){S=B(x,A)}),S})(o,g)),En(function(){var x=Mw(c);x!=null&&(Nw.set(u,x),p0.set(o,x),d0.set(x,o))}),g})(e,n):(function(o,i,a){if(o.text==null)throw new Error("Current node is not slate Text "+JSON.stringify(o));var u=_.findKey(a,o),s=a.getConfig().decorate;if(s==null)throw new Error("Can not get config.decorate");var l=_.findPath(a,o),c=s([o,l]),f=le.decorations(o,c),p=f.map(function(m,g){var y=(function(h,b,w,x,A){b===void 0&&(b=!1);var S=h.text,B=_.findPath(A,w),P=M.parent(B);if(D.isEditor(x))throw new Error("Text node "+JSON.stringify(w)+" parent is Editor");return A.isVoid(x)?xE(oe.string(x).length):S!==""||x.children[x.children.length-1]!==w||A.isInline(x)||D.string(A,P)!==""?S===""?xE():b&&S.slice(-1)===`
27
+ `?bB(S,!0):bB(S):xE(0,!0)})(m,g===f.length-1,o,i,a);return y=(function(h,b){var w=b;return CE.forEach(function(x){w=x(h,w)}),w})(m,y),Ee("span",{"data-slate-leaf":!0},y)}),d=(function(m){return"w-e-text-"+m})(u.id),v=Ee("span",{"data-slate-node":"text",id:d,key:u.id},p);return En(function(){var m=Mw(d);m!=null&&(Nw.set(u,m),p0.set(o,m),d0.set(m,o))}),v})(e,r,n)}function Oee(e,t){var r,n=e.$scroll,o=(function(m){return"w-e-textarea-"+m})(e.id),i=t.getConfig(),a=i.readOnly,u=i.autoFocus,s=(function(m,g){return g===void 0&&(g=!1),Is("div#"+m,{props:{contentEditable:!g}})})(o,a),l=t.children||[];s.children=l.map(function(m,g){var y=DE(m,g,t,t);return mB(y),y});var c=tO.get(e);if(c==null&&(c=!0),c){var f=(function(m,g){return T(`<div
28
+ id="`+m+`"
29
+ data-slate-editor
30
+ data-slate-node="value"
31
+ suppressContentEditableWarning
32
+ role="textarea"
33
+ spellCheck="true"
34
+ autoCorrect="true"
35
+ autoCapitalize="true"
36
+ ></div>`)})(o);n.append(f),e.$textArea=f,r=f[0],(d=yY([wY,DY,AY,EY,xY,bY]))(r,s),tO.set(e,!1),rO.set(e,d)}else{var p=nO.get(e),d=rO.get(e);if(p==null||d==null)return;r=p.elm,d(p,s)}if(r!=null||(r=Mw(o))!=null){if((c?u:t.isFocused())&&r.focus({preventScroll:!0}),c){var v=Lw(r);v&&oO.set(t,v)}jw.set(t,r),p0.set(t,r),d0.set(r,t),nO.set(e,s)}}function wB(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function EB(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function SE(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return EB(r.overflowY,t)||EB(r.overflowX,t)||(function(n){var o=(function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1}function x0(e,t,r,n,o,i,a,u){return i<e&&a>t||i>e&&a<t?0:i<=e&&u<=r||a>=t&&u>=r?i-e-n:a>t&&u<r||i<e&&u>r?a-t+o:0}function CB(e,t){var r=window,n=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,u=t.skipOverflowHiddenElements,s=typeof a=="function"?a:function(he){return he!==a};if(!wB(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],f=e;wB(f)&&s(f);){if((f=f.parentElement)===l){c.push(f);break}f!=null&&f===document.body&&SE(f)&&!SE(document.documentElement)||f!=null&&SE(f,u)&&c.push(f)}for(var p=r.visualViewport?r.visualViewport.width:innerWidth,d=r.visualViewport?r.visualViewport.height:innerHeight,v=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),y=g.height,h=g.width,b=g.top,w=g.right,x=g.bottom,A=g.left,S=o==="start"||o==="nearest"?b:o==="end"?x:b+y/2,B=i==="center"?A+h/2:i==="end"?w:A,P=[],H=0;H<c.length;H++){var U=c[H],W=U.getBoundingClientRect(),C=W.height,z=W.width,k=W.top,I=W.right,Y=W.bottom,$=W.left;if(n==="if-needed"&&b>=0&&A>=0&&x<=d&&w<=p&&b>=k&&x<=Y&&A>=$&&w<=I)return P;var ee=getComputedStyle(U),Q=parseInt(ee.borderLeftWidth,10),F=parseInt(ee.borderTopWidth,10),O=parseInt(ee.borderRightWidth,10),j=parseInt(ee.borderBottomWidth,10),N=0,q=0,G="offsetWidth"in U?U.offsetWidth-U.clientWidth-Q-O:0,te="offsetHeight"in U?U.offsetHeight-U.clientHeight-F-j:0;if(l===U)N=o==="start"?S:o==="end"?S-d:o==="nearest"?x0(m,m+d,d,F,j,m+S,m+S+y,y):S-d/2,q=i==="start"?B:i==="center"?B-p/2:i==="end"?B-p:x0(v,v+p,p,Q,O,v+B,v+B+h,h),N=Math.max(0,N+m),q=Math.max(0,q+v);else{N=o==="start"?S-k-F:o==="end"?S-Y+j+te:o==="nearest"?x0(k,Y,C,F,j+te,S,S+y,y):S-(k+C/2)+te/2,q=i==="start"?B-$-Q:i==="center"?B-($+z/2)+G/2:i==="end"?B-I+O+G:x0($,I,z,Q,O+G,B,B+h,h);var fe=U.scrollLeft,de=U.scrollTop;S+=de-(N=Math.max(0,Math.min(de+N,U.scrollHeight-C+te))),B+=fe-(q=Math.max(0,Math.min(fe+q,U.scrollWidth-z+G)))}P.push({el:U,top:N,left:q})}return P}function xB(e){return e===Object(e)&&Object.keys(e).length!==0}function Cn(e,t){return yu(t)&&_.hasDOMNode(e,t,{editable:!0})}function DB(e,t){if(e.getConfig().readOnly)return!1;var r=ll(e,t)&&_.toSlateNode(e,t);return D.isVoid(e,r)}function ll(e,t){return yu(t)&&_.hasDOMNode(e,t)}function SB(e,t,r){r===void 0&&(r=!1);var n=t.selection,o=t.getConfig(),i=_.findDocumentOrShadowRoot(t).getSelection();if(i&&(!e.isComposing||r)&&t.isFocused()){var a=i.type!=="None";if(n||a){var u=jw.get(t),s=!1;if(u.contains(i.anchorNode)&&u.contains(i.focusNode)&&(s=!0),a&&s&&n){var l=_.toSlateRange(t,i,{exactMatch:!0,suppressThrow:!0});if(l&&X.equals(l,n)){var c=!0;if(X.isCollapsed(n)){var f=i.anchorNode,p=i.anchorOffset;if(f===u){var d=u.childNodes,v=void 0;(v=d[p])&&v.matches("table")&&(c=!1),(v=d[p-1])&&v.matches("table")&&(c=!1)}}if(c)return}}if(!n||_.hasRange(t,n)){e.isUpdatingSelection=!0;var m=n&&_.toDOMRange(t,n);if(m){X.isBackward(n)?i.setBaseAndExtent(m.endContainer,m.endOffset,m.startContainer,m.startOffset):i.setBaseAndExtent(m.startContainer,m.startOffset,m.endContainer,m.endOffset);var g=m.startContainer.parentElement;if(!g.closest("[data-slate-spacer]")){g.getBoundingClientRect=m.getBoundingClientRect.bind(m);var y=document.body;(function(h,b){var w=!h.ownerDocument.documentElement.contains(h);if(xB(b)&&typeof b.behavior=="function")return b.behavior(w?[]:CB(h,b));if(!w){var x=(function(A){return A===!1?{block:"end",inline:"nearest"}:xB(A)?A:{block:"start",inline:"nearest"}})(b);(function(A,S){S===void 0&&(S="auto");var B="scrollBehavior"in document.body.style;A.forEach(function(P){var H=P.el,U=P.top,W=P.left;H.scroll&&B?H.scroll({top:U,left:W,behavior:S}):(H.scrollTop=U,H.scrollLeft=W)})})(CB(h,x),x.behavior)}})(g,{scrollMode:"if-needed",boundary:o.scroll?u.parentElement:y,block:"end",behavior:"smooth"}),delete g.getBoundingClientRect}}else i.removeAllRanges();setTimeout(function(){m&&Nf&&u.focus(),e.isUpdatingSelection=!1})}else t.selection=_.toSlateRange(t,i,{exactMatch:!1,suppressThrow:!1})}}}var AE=new WeakMap,AB=new WeakMap,Bee={bold:"mod+b",compose:["down","left","right","up","backspace","enter"],moveBackward:"left",moveForward:"right",moveWordBackward:"ctrl+left",moveWordForward:"ctrl+right",deleteBackward:"shift?+backspace",deleteForward:"shift?+delete",extendBackward:"shift+left",extendForward:"shift+right",italic:"mod+i",splitBlock:"shift?+enter",undo:"mod+z",tab:"tab",selectAll:"mod+a"},Fee={moveLineBackward:"opt+up",moveLineForward:"opt+down",moveWordBackward:"opt+left",moveWordForward:"opt+right",deleteBackward:["ctrl+backspace","ctrl+h"],deleteForward:["ctrl+delete","ctrl+d"],deleteLineBackward:"cmd+shift?+backspace",deleteLineForward:["cmd+shift?+delete","ctrl+k"],deleteWordBackward:"opt+shift?+backspace",deleteWordForward:"opt+shift?+delete",extendLineBackward:"opt+shift+up",extendLineForward:"opt+shift+down",redo:"cmd+shift+z",transposeCharacter:"ctrl+t"},_ee={deleteWordBackward:"ctrl+shift?+backspace",deleteWordForward:"ctrl+shift?+delete",redo:["ctrl+y","ctrl+shift+z"]},vt=function(e){var t=Bee[e],r=Fee[e],n=_ee[e],o=t&&e2(t),i=r&&e2(r),a=n&&e2(n);return function(u){return!(!o||!o(u))||!!(zw&&i&&i(u))||!(zw||!a||!a(u))}},xt={isBold:vt("bold"),isCompose:vt("compose"),isMoveBackward:vt("moveBackward"),isMoveForward:vt("moveForward"),isDeleteBackward:vt("deleteBackward"),isDeleteForward:vt("deleteForward"),isDeleteLineBackward:vt("deleteLineBackward"),isDeleteLineForward:vt("deleteLineForward"),isDeleteWordBackward:vt("deleteWordBackward"),isDeleteWordForward:vt("deleteWordForward"),isExtendBackward:vt("extendBackward"),isExtendForward:vt("extendForward"),isExtendLineBackward:vt("extendLineBackward"),isExtendLineForward:vt("extendLineForward"),isItalic:vt("italic"),isMoveLineBackward:vt("moveLineBackward"),isMoveLineForward:vt("moveLineForward"),isMoveWordBackward:vt("moveWordBackward"),isMoveWordForward:vt("moveWordForward"),isRedo:vt("redo"),isSplitBlock:vt("splitBlock"),isTransposeCharacter:vt("transposeCharacter"),isUndo:vt("undo"),isTab:vt("tab"),isSelectAll:vt("selectAll")};function Wt(e){e.preventDefault()}var Tee={beforeinput:function(e,t,r){var n=e,o=r.getConfig().readOnly;if(If&&!o&&Cn(r,n.target)){var i=r.selection,a=n.inputType,u=n.dataTransfer||n.data||void 0;if(a!=="insertCompositionText"&&a!=="deleteCompositionText"){if(n.preventDefault(),!a.startsWith("delete")||a.startsWith("deleteBy")){var s=Ue(n.getTargetRanges(),1)[0];if(s){var l=_.toSlateRange(r,s,{exactMatch:!1,suppressThrow:!1});i&&X.equals(i,l)||V.select(r,l)}}if(i&&X.isExpanded(i)&&a.startsWith("delete")){var c=a.endsWith("Backward")?"backward":"forward";D.deleteFragment(r,{direction:c})}else switch(a){case"deleteByComposition":case"deleteByCut":case"deleteByDrag":D.deleteFragment(r);break;case"deleteContent":case"deleteContentForward":D.deleteForward(r);break;case"deleteContentBackward":D.deleteBackward(r);break;case"deleteEntireSoftLine":D.deleteBackward(r,{unit:"line"}),D.deleteForward(r,{unit:"line"});break;case"deleteHardLineBackward":D.deleteBackward(r,{unit:"block"});break;case"deleteSoftLineBackward":D.deleteBackward(r,{unit:"line"});break;case"deleteHardLineForward":D.deleteForward(r,{unit:"block"});break;case"deleteSoftLineForward":D.deleteForward(r,{unit:"line"});break;case"deleteWordBackward":D.deleteBackward(r,{unit:"word"});break;case"deleteWordForward":D.deleteForward(r,{unit:"word"});break;case"insertLineBreak":case"insertParagraph":D.insertBreak(r);break;case"insertFromDrop":case"insertFromPaste":case"insertFromYank":case"insertReplacementText":case"insertText":if(a==="insertFromPaste"&&!Iw.get(r))break;u instanceof DataTransfer?r.insertData(u):typeof u=="string"&&D.insertText(r,u)}}}},blur:function(e,t,r){var n=e,o=t.isUpdatingSelection,i=t.latestElement;if(!r.getConfig().readOnly&&!o&&Cn(r,n.target)){var a=_.findDocumentOrShadowRoot(r);if(i!==a.activeElement){var u=n.relatedTarget;if(!(u===_.toDOMNode(r,r)||Hn(u)&&u.hasAttribute("data-slate-spacer"))){if(u!=null&&yu(u)&&_.hasDOMNode(r,u)){var s=_.toSlateNode(r,u);if(ge.isElement(s)&&!r.isVoid(s))return}if(Rf){var l=a.getSelection();l?.removeAllRanges()}mu.delete(r)}}}},focus:function(e,t,r){var n=_.toDOMNode(r,r),o=_.findDocumentOrShadowRoot(r);t.latestElement=o.activeElement,Nf&&e.target!==n?n.focus():mu.set(r,!0)},click:function(e,t,r){if(!r.getConfig().readOnly&&ll(r,e.target)&&yu(e.target)){var n=_.toSlateNode(r,e.target),o=_.findPath(r,n);if(D.hasPath(r,o)&&oe.get(r,o)===n){var i=D.start(r,o),a=D.end(r,o),u=D.void(r,{at:i}),s=D.void(r,{at:a});if(u&&s&&M.equals(u[1],s[1])){var l=D.range(r,i);V.select(r,l)}}}},compositionstart:function(e,t,r){if(Cn(r,e.target)){var n=r.selection;if(n&&X.isExpanded(n)&&(D.deleteFragment(r),Promise.resolve().then(function(){SB(t,r,!0)})),n&&X.isCollapsed(n)){var o=_.toDOMRange(r,n).startContainer,i=o.textContent||"";AE.set(r,i),AB.set(r,o)}t.isComposing=!0,(function(a,u){var s;u.getConfig().placeholder&&u.isEmpty()&&a.showPlaceholder&&((s=a.$placeholder)===null||s===void 0||s.hide(),a.showPlaceholder=!1)})(t,r)}},compositionend:function(e,t,r){var n=e;if(Cn(r,n.target)){t.isComposing=!1;var o=r.selection;if(o!=null){(Vw||Nf)&&_.cleanExposedTexNodeInSelectionBlock(r);for(var i=X.isBackward(o)?o.focus:o.anchor,a=Ue(D.node(r,[i.path[0]]),1)[0],u=0;u<i.path.length;u++){var s=Ue(D.node(r,i.path.slice(0,u+1)),1)[0];if(ge.isElement(s)&&((Rf||Nf)&&s.type==="link"||s.type==="code")){_.setNewKey(a);break}}var l=n.data;if(l){if(r.getConfig().maxLength){var c=_.getLeftLengthOfMaxLength(r);c<l.length?(_.toDOMRange(r,o).startContainer.textContent=AE.get(r)||"",c>0&&D.insertText(r,l.slice(0,c)),t.changeViewState()):D.insertText(r,l)}else D.insertText(r,l);Rf||setTimeout(function(){var f=r.selection;if(f!=null){var p=AB.get(r);p!=null&&_.toDOMRange(r,f).startContainer!==p&&(p.textContent=AE.get(r)||"")}})}}}},compositionupdate:function(e,t,r){Cn(r,e.target)&&(t.isComposing=!0)},keydown:function(e,t,r){var n=e,o=r.selection;if(!r.getConfig().readOnly&&!t.isComposing&&Cn(r,n.target)){if((function(a,u){var s=l0.get(a),l=s&&s.getMenus(),c=c0.get(a),f=c&&c.getMenus(),p=bn(bn({},l),f);for(var d in p){var v=p[d],m=v.hotkey;if(m&&QY(m,u)&&!v.isDisabled(a)){var g=v.getValue(a);v.exec(a,g)}}})(r,n),xt.isTab(n))return Wt(n),void r.handleTab();if(xt.isRedo(n))return Wt(n),void(typeof r.redo=="function"&&r.redo());if(xt.isUndo(n))return Wt(n),void(typeof r.undo=="function"&&r.undo());if(xt.isMoveLineBackward(n))return Wt(n),void V.move(r,{unit:"line",reverse:!0});if(xt.isMoveLineForward(n))return Wt(n),void V.move(r,{unit:"line"});if(xt.isExtendLineBackward(n))return Wt(n),void V.move(r,{unit:"line",edge:"focus",reverse:!0});if(xt.isExtendLineForward(n))return Wt(n),void V.move(r,{unit:"line",edge:"focus"});if(xt.isMoveBackward(n))return Wt(n),void(o&&X.isCollapsed(o)?V.move(r,{reverse:!0}):V.collapse(r,{edge:"start"}));if(xt.isMoveForward(n))return Wt(n),void(o&&X.isCollapsed(o)?V.move(r):V.collapse(r,{edge:"end"}));if(xt.isMoveWordBackward(n))return Wt(n),o&&X.isExpanded(o)&&V.collapse(r,{edge:"focus"}),void V.move(r,{unit:"word",reverse:!0});if(xt.isMoveWordForward(n))return Wt(n),o&&X.isExpanded(o)&&V.collapse(r,{edge:"focus"}),void V.move(r,{unit:"word"});if(xt.isSelectAll(n))return Wt(n),void r.selectAll();if(If){if((Vw||Rf)&&o&&(xt.isDeleteBackward(n)||xt.isDeleteForward(n))&&X.isCollapsed(o)){var i=oe.parent(r,o.anchor.path);if(ge.isElement(i)&&D.isVoid(r,i)&&D.isInline(r,i))return n.preventDefault(),void V.delete(r,{unit:"block"})}}else{if(xt.isBold(n)||xt.isItalic(n)||xt.isTransposeCharacter(n))return void Wt(n);if(xt.isSplitBlock(n))return Wt(n),void D.insertBreak(r);if(xt.isDeleteBackward(n))return Wt(n),void(o&&X.isExpanded(o)?D.deleteFragment(r,{direction:"backward"}):D.deleteBackward(r));if(xt.isDeleteForward(n))return Wt(n),void(o&&X.isExpanded(o)?D.deleteFragment(r,{direction:"forward"}):D.deleteForward(r));if(xt.isDeleteLineBackward(n))return Wt(n),void(o&&X.isExpanded(o)?D.deleteFragment(r,{direction:"backward"}):D.deleteBackward(r,{unit:"line"}));if(xt.isDeleteLineForward(n))return Wt(n),void(o&&X.isExpanded(o)?D.deleteFragment(r,{direction:"forward"}):D.deleteForward(r,{unit:"line"}));if(xt.isDeleteWordBackward(n))return Wt(n),void(o&&X.isExpanded(o)?D.deleteFragment(r,{direction:"backward"}):D.deleteBackward(r,{unit:"word"}));if(xt.isDeleteWordForward(n))return Wt(n),void(o&&X.isExpanded(o)?D.deleteFragment(r,{direction:"forward"}):D.deleteForward(r,{unit:"word"}))}}},keypress:function(e,t,r){if(!If&&!r.getConfig().readOnly&&Cn(r,e.target)){e.preventDefault();var n=e.key;D.insertText(r,n)}},copy:function(e,t,r){var n=e;if(Cn(r,n.target)){n.preventDefault();var o=n.clipboardData;o!=null&&r.setFragmentData(o)}},cut:function(e,t,r){var n=e,o=r.selection;if(!r.getConfig().readOnly&&Cn(r,n.target)){n.preventDefault();var i=n.clipboardData;if(i!=null&&(r.setFragmentData(i),o))if(X.isExpanded(o))D.deleteFragment(r);else{var a=oe.parent(r,o.anchor.path);D.isVoid(r,a)&&V.delete(r)}}},paste:function(e,t,r){Iw.set(r,!0);var n=e;if(!r.getConfig().readOnly&&Cn(r,n.target)){var o=r.getConfig().customPaste;if(o&&o(r,n)===!1)return void Iw.set(r,!1);if(!If||(function(a){return a.clipboardData&&a.clipboardData.getData("text/plain")!==""&&a.clipboardData.types.length===1})(n)){n.preventDefault();var i=n.clipboardData;i!=null&&r.insertData(i)}}},dragover:function(e,t,r){if(ll(r,e.target)){var n=_.toSlateNode(r,e.target);D.isVoid(r,n)&&e.preventDefault()}},dragstart:function(e,t,r){var n=e;if(ll(r,n.target)&&!r.getConfig().readOnly){var o=_.toSlateNode(r,n.target),i=_.findPath(r,o);if(D.isVoid(r,o)||D.void(r,{at:i,voids:!0})){var a=D.range(r,i);V.select(r,a)}var u=n.dataTransfer;u!=null&&(t.isDraggingInternally=!0,r.setFragmentData(u))}},dragend:function(e,t,r){var n=e;r.getConfig().readOnly||t.isDraggingInternally&&ll(r,n.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,r){var n=e,o=n.dataTransfer;if(!r.getConfig().readOnly&&ll(r,n.target)&&o!=null&&!(If&&Rf&&o.files.length>0)){n.preventDefault();var i=r.selection,a=_.findEventRange(r,n);V.select(r,a),t.isDraggingInternally&&(i&&V.delete(r,{at:i}),t.isDraggingInternally=!1),r.insertData(o),r.isFocused()||r.focus()}}},Pee=1,jee=(function(){function e(t){var r=this;this.id=Pee++,this.$textArea=null,this.$progressBar=T('<div class="w-e-progress-bar"></div>'),this.$maxLengthInfo=T('<div class="w-e-max-length-info"></div>'),this.isComposing=!1,this.isUpdatingSelection=!1,this.isDraggingInternally=!1,this.latestElement=null,this.showPlaceholder=!1,this.$placeholder=null,this.latestEditorSelection=null,this.onDOMSelectionChange=tu(function(){var a=r.editorInstance;(function(u,s){var l=u.isComposing,c=u.isUpdatingSelection,f=u.isDraggingInternally;if(!(s.getConfig().readOnly||l||c||f)){var p=_.findDocumentOrShadowRoot(s),d=p.activeElement,v=_.toDOMNode(s,s),m=p.getSelection();if(d===v?(u.latestElement=d,mu.set(s,!0)):mu.delete(s),!m)return V.deselect(s);var g=m.anchorNode,y=m.focusNode,h=Cn(s,g)||DB(s,g),b=Cn(s,y)||DB(s,y);if(h&&b){var w=_.toSlateRange(s,m,{exactMatch:!1,suppressThrow:!1});V.select(s,w)}else V.deselect(s)}})(r,a)},100);var n=T(t);if(n.length===0)throw new Error("Cannot find textarea DOM by selector '"+t+"'");this.$box=n;var o=T('<div class="w-e-text-container"></div>');o.append(this.$progressBar),o.append(this.$maxLengthInfo),n.append(o);var i=T('<div class="w-e-scroll"></div>');o.append(i),this.$scroll=i,this.$textAreaContainer=o,En(function(){var a=r.editorInstance,u=_.getWindow(a);u.document.addEventListener("selectionchange",r.onDOMSelectionChange),a.on("destroyed",function(){u.document.removeEventListener("selectionchange",r.onDOMSelectionChange)}),o.on("click",function(){return a.hidePanelOrModal()}),a.on("change",r.changeViewState.bind(r));var s=a.getConfig().onChange;s&&a.on("change",function(){return s(a)}),r.onFocusAndOnBlur(),a.on("change",r.changeMaxLengthInfo.bind(r)),r.bindEvent()})}return Object.defineProperty(e.prototype,"editorInstance",{get:function(){var t=Bw.get(this);if(t==null)throw new Error("Can not get editor instance");return t},enumerable:!1,configurable:!0}),e.prototype.bindEvent=function(){var t=this,r=this.$textArea,n=this.$scroll,o=this.editorInstance;r!=null&&(Hb(Tee,function(i,a){r.on(a,function(u){i(u,t,o)})}),o.getConfig().scroll&&(n.css("overflow-y","auto"),n.on("scroll",tu(function(){o.emit("scroll")},100))))},e.prototype.onFocusAndOnBlur=function(){var t=this,r=this.editorInstance,n=r.getConfig(),o=n.onBlur,i=n.onFocus;this.latestEditorSelection=r.selection,r.on("change",function(){t.latestEditorSelection==null&&r.selection!=null?setTimeout(function(){return i&&i(r)}):t.latestEditorSelection!=null&&r.selection==null&&setTimeout(function(){return o&&o(r)}),t.latestEditorSelection=r.selection})},e.prototype.changeMaxLengthInfo=function(){var t=this.editorInstance,r=t.getConfig().maxLength;if(r){var n=r-_.getLeftLengthOfMaxLength(t);this.$maxLengthInfo[0].innerHTML=n+"/"+r}},e.prototype.changeProgress=function(t){var r=this.$progressBar;r.css("width",t+"%"),t>=100&&setTimeout(function(){r.hide(),r.css("width","0"),r.show()},1e3)},e.prototype.changeViewState=function(){var t=this,r=this.editorInstance;Oee(this,r),(function(n,o){var i,a=o.getConfig().placeholder;if(a){var u=o.isEmpty();if(u&&!n.showPlaceholder&&!n.isComposing){if(n.$placeholder==null){var s=T('<div class="w-e-text-placeholder">'+a+"</div>");n.$textAreaContainer.append(s),n.$placeholder=s}return n.$placeholder.show(),void(n.showPlaceholder=!0)}!u&&n.showPlaceholder&&((i=n.$placeholder)===null||i===void 0||i.hide(),n.showPlaceholder=!1)}})(this,r),En(function(){SB(t,r)})},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e})();function kE(e){e.removeAttr("width"),e.removeAttr("height"),e.removeAttr("fill"),e.removeAttr("class"),e.removeAttr("t"),e.removeAttr("p-id");var t=e.children();t.length&&kE(t)}function OE(){return T('<svg viewBox="0 0 1024 1024"><path d="M498.7 655.8l-197.6-268c-8.1-10.9-0.3-26.4 13.3-26.4h395.2c13.6 0 21.4 15.4 13.3 26.4l-197.6 268c-6.6 9-20 9-26.6 0z"></path></svg>')}function kB(){return T('<div class="w-e-bar-divider"></div>')}function OB(e,t,r,n,o){if(o===void 0&&(o=!1),t){if(n){var i=zw?"cmd":"ctrl";n=n.replace("mod",i)}if(o)n&&(e.attr("data-tooltip",n),e.addClass("w-e-menu-tooltip-v5"),e.addClass("tooltip-right"));else{var a=n?r+`
37
+ `+n:r;e.attr("data-tooltip",a),e.addClass("w-e-menu-tooltip-v5")}}}gw("match",function(e,t,r){return[function(n){var o=yn(this),i=n==null?void 0:fu(n,e);return i?We(i,n,o):new RegExp(n)[e](ut(o))},function(n){var o=Nt(this),i=ut(n),a=r(t,o,i);if(a.done)return a.value;if(!o.global)return Bf(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=Bf(o,i))!==null;){var f=ut(s[0]);l[c]=f,f===""&&(o.lastIndex=vw(i,qs(o.lastIndex),u)),c++}return c===0?null:l}]});var BE=(function(){function e(t,r,n){var o=this;n===void 0&&(n=!1),this.$elem=T('<div class="w-e-bar-item"></div>'),this.$button=T('<button type="button"></button>'),this.disabled=!1,this.menu=r;var i=r.tag,a=r.width;if(i!=="button")throw new Error("Invalid tag '"+i+"', expected 'button'");var u=r.title,s=r.hotkey,l=s===void 0?"":s,c=r.iconSvg,f=c===void 0?"":c,p=this.$button;if(f){var d=T(f);kE(d),p.append(d)}else p.text(u);OB(p,f,u,l,n),n&&f&&p.append(T('<span class="title">'+u+"</span>")),a&&p.css("width",a+"px"),p.attr("data-menu-key",t),this.$elem.append(p),En(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setActive(),this.setDisabled(),this.$button.on("click",function(r){r.preventDefault(),nn(t).hidePanelOrModal(),t.disabled||(t.exec(),t.onButtonClick())})},e.prototype.exec=function(){var t=nn(this),r=this.menu,n=r.getValue(t);r.exec(t,n)},e.prototype.setActive=function(){var t=nn(this),r=this.$button,n="active";this.menu.isActive(t)?r.addClass(n):r.removeClass(n)},e.prototype.setDisabled=function(){var t=nn(this),r=this.$button,n=this.menu.isDisabled(t);(t.selection==null||t.isDisabled())&&(n=!0),this.menu.alwaysEnable&&(n=!1);var o="disabled";n?r.addClass(o):r.removeClass(o),this.disabled=n},e.prototype.changeMenuState=function(){this.setActive(),this.setDisabled()},e})(),Nee=(function(e){function t(r,n,o){return o===void 0&&(o=!1),e.call(this,r,n,o)||this}return Zs(t,e),t.prototype.onButtonClick=function(){},t})(BE),FE=(function(){function e(t){this.isShow=!1,this.showTime=0,this.record(t)}return e.prototype.record=function(t){var r=Pw.get(t);r==null&&(r=new Set,Pw.set(t,r)),r.add(this),f0.set(this,t)},e.prototype.renderContent=function(t){var r=this.$elem;r.empty(),r.append(t);var n=this.genSelfElem();n&&r.append(n)},e.prototype.appendTo=function(t){var r=this.$elem;t.append(r)},e.prototype.show=function(){if(!this.isShow){this.showTime=Date.now(),this.$elem.show(),this.isShow=!0;var t=f0.get(this);t&&t.emit("modalOrPanelShow",this)}},e.prototype.hide=function(){if(this.isShow&&!(Date.now()-this.showTime<200)){this.$elem.hide(),this.isShow=!1;var t=f0.get(this);t&&t.emit("modalOrPanelHide")}},e})(),Ree=(function(e){function t(r){var n=e.call(this,r)||this;return n.type="dropPanel",n.$elem=T('<div class="w-e-drop-panel"></div>'),n}return Zs(t,e),t.prototype.genSelfElem=function(){return null},t})(FE),Iee=(function(e){function t(r,n,o){o===void 0&&(o=!1);var i=e.call(this,r,n,o)||this;if(i.dropPanel=null,i.menu=n,n.showDropPanel){var a=OE();i.$button.append(a)}return i}return Zs(t,e),t.prototype.onButtonClick=function(){this.menu.showDropPanel&&this.handleDropPanel()},t.prototype.handleDropPanel=function(){var r=this.menu;if(r.getPanelContentElem!=null){var n=nn(this);if(this.dropPanel==null){var o=new Ree(n),i=r.getPanelContentElem(n);o.renderContent(i),o.appendTo(this.$elem),o.show(),this.dropPanel=o}else{var a=this.dropPanel;a.isShow?a.hide():(i=r.getPanelContentElem(n),a.renderContent(i),a.show())}var u=this.dropPanel;if(u.isShow){var s=this.$elem,l=s.offset().left,c=s.parents(".w-e-bar");l-c.offset().left>=c.width()/2?u.$elem.css({left:"none",right:"0"}):u.$elem.css({left:"0",right:"none"})}}},t})(BE),Lee=(function(e){function t(r,n){n===void 0&&(n=0);var o=e.call(this,r)||this;o.type="modal",o.$elem=T('<div class="w-e-modal"></div>'),o.width=0,n&&(o.width=n);var i=o.$elem;return i.on("click",function(a){return a.stopPropagation()}),i.on("keyup",function(a){a.code==="Escape"&&(o.hide(),r.restoreSelection())}),o}return Zs(t,e),t.prototype.genSelfElem=function(){var r=this,n=T('<span class="btn-close"><svg viewBox="0 0 1024 1024"><path d="M1024 896.1024l-128 128L512 640 128 1024 0 896 384 512 0 128 128 0 512 384 896.1024 0l128 128L640 512z"></path></svg></span>'),o=f0.get(this);return n.on("click",function(){r.hide(),o?.restoreSelection()}),n},t.prototype.setStyle=function(r){var n=this.width,o=this.$elem;o.attr("style",""),n&&o.css("width",n+"px"),o.css(r)},t})(FE);function rn(e,t,r){var n=T('<label class="babel-container"></label>');n.append("<span>"+e+"</span>");var o=T('<input type="text" id="'+t+'" placeholder="'+(r||"")+'">');return n.append(o),[n[0],o[0]]}function cl(e,t){var r=T('<div class="button-container"></div>'),n=T('<button type="button" id="'+e+'">'+t+"</button>");return r.append(n),[r[0],n[0]]}var Mee=(function(e){function t(r,n,o){o===void 0&&(o=!1);var i=e.call(this,r,n,o)||this;return i.$body=T("body"),i.modal=null,i.menu=n,i}return Zs(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var r=nn(this),n=this.menu.getModalPositionNode(r);return ge.isElement(n)?bE(r,n,"modal"):yE(r)},t.prototype.handleModal=function(){var r=nn(this),n=this.menu;if(this.modal==null){var o=new Lee(r,n.modalWidth);this.renderAndShowModal(o,!0),this.modal=o}else(o=this.modal).isShow?o.hide():this.renderAndShowModal(o,!1)},t.prototype.renderAndShowModal=function(r,n){n===void 0&&(n=!1);var o=nn(this),i=this.menu;if(i.getModalContentElem!=null){var a=_.getTextarea(o),u=_.getToolbar(o),s=(u?.getConfig()||{}).modalAppendToBody,l=i.getModalContentElem(o);if(r.renderContent(l),s)r.setStyle({left:"0",right:"0"});else{var c=this.getPosition();r.setStyle(c)}n&&(s?r.appendTo(this.$body):r.appendTo(a.$textAreaContainer)),r.show(),s||wE(o,r.$elem),setTimeout(function(){o.blur()})}},t})(BE),zee=(function(e){function t(r,n){var o=e.call(this,r)||this;return o.type="selectList",o.$elem=T('<div class="w-e-select-list"></div>'),n&&o.$elem.css("width",n+"px"),o.$elem.on("click",function(i){i.stopPropagation()}),o}return Zs(t,e),t.prototype.renderList=function(r){var n=this.$elem;n.empty();var o=T("<ul></ul>");r.forEach(function(i){var a=i.value,u=i.text,s=i.selected,l=i.styleForRenderMenuList,c=T('<li data-value="'+a+'"></li>');if(l&&c.css(l),s){var f=T('<svg viewBox="0 0 1446 1024"><path d="M574.116299 786.736392 1238.811249 48.517862C1272.390222 11.224635 1329.414799 7.827718 1366.75664 41.450462 1403.840015 74.840484 1406.731043 132.084741 1373.10189 169.433699L655.118888 966.834607C653.072421 969.716875 650.835807 972.514337 648.407938 975.210759 615.017957 1012.29409 558.292155 1015.652019 521.195664 982.250188L72.778218 578.493306C35.910826 545.297758 32.859041 488.584019 66.481825 451.242134 99.871807 414.158803 156.597563 410.800834 193.694055 444.202665L574.116299 786.736392Z"></path></svg>');c.append(f),c.addClass("selected")}c.append(T('<span data-value="'+a+'">'+u+"</span>")),c.attr("title",u),o.append(c)}),n.append(o)},t.prototype.genSelfElem=function(){return null},t})(FE),Vee=(function(){function e(t,r,n){var o=this;n===void 0&&(n=!1),this.$elem=T('<div class="w-e-bar-item"></div>'),this.$button=T('<button type="button" class="select-button"></button>'),this.disabled=!1,this.selectList=null;var i=r.tag,a=r.title,u=r.width,s=r.iconSvg,l=s===void 0?"":s,c=r.hotkey,f=c===void 0?"":c;if(i!=="select")throw new Error("Invalid tag '"+i+"', expected 'select'");var p=this.$button;u&&p.css("width",u+"px"),p.attr("data-menu-key",t),OB(p,l,a,f,n),this.$elem.append(p),this.menu=r,En(function(){return o.init()})}return e.prototype.init=function(){var t=this;this.setSelectedValue(),this.$button.on("click",function(r){r.preventDefault(),nn(t).hidePanelOrModal(),t.trigger()})},e.prototype.trigger=function(){var t=this,r=nn(this);if(!r.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new zee(r,n.selectPanelWidth);var o=this.selectList,i=n.getOptions(r);o.renderList(i),o.appendTo(this.$elem),o.show(),o.$elem.on("click","li",function(a){var u=a.target;if(u!=null){a.preventDefault();var s=T(u).attr("data-value");t.onChange(s)}})}else(o=this.selectList).isShow?o.hide():(i=n.getOptions(r),o.renderList(i),o.show())}},e.prototype.onChange=function(t){var r=nn(this),n=this.menu;n.exec&&n.exec(r,t)},e.prototype.setSelectedValue=function(){var t=nn(this),r=this.menu,n=r.getValue(t),o=(function(u,s){for(var l=u.length,c="",f=0;f<l;f++){var p=u[f];if(p.value===s){c=p.text;break}}return c})(r.getOptions(t),n.toString()),i=this.$button,a=OE();i.empty(),i.text(o),i.append(a)},e.prototype.setDisabled=function(){var t=nn(this),r=this.menu.isDisabled(t),n=this.$button;(t.selection==null||t.isDisabled())&&(r=!0);var o="disabled";r?n.addClass(o):n.removeClass(o),this.disabled=r},e.prototype.changeMenuState=function(){this.setSelectedValue(),this.setDisabled()},e})(),BB=(function(){function e(t){this.$elem=T('<div class="w-e-bar-item w-e-bar-item-group"></div>'),this.$container=T('<div class="w-e-bar-item-menus-container"></div>'),this.$button=T('<button type="button"></button>');var r=t.key,n=t.iconSvg,o=t.title,i=this.$elem,a=this.$button;if(n){var u=T(n);kE(u),a.append(u)}else a.text(o);a.attr("data-menu-key",r);var s=OE();a.append(s),i.append(a);var l=this.$container;i.append(l);var c=this.createObserver();this.observe(c)}return e.prototype.appendBarItem=function(t){var r=t.$elem;this.$container.append(r)},e.prototype.observe=function(t){var r=this.$container;t.observe(r[0],{childList:!0,subtree:!0,attributes:!0})},e.prototype.createObserver=function(){var t=this,r=this.$container,n=this.$button,o=new MutationObserver(function(){var i=r.find("button"),a=i.length;if(a!==0){var u=0;i.each(function(s){T(s).hasClass("disabled")&&u++}),o.disconnect(),u===a?n.addClass("disabled"):n.removeClass("disabled"),t.observe(o)}});return o},e})(),FB=new WeakMap;function nn(e){var t=Tw.get(e);if(t==null)throw new Error("Can not get editor instance");return t}function _B(e,t,r){r===void 0&&(r=!1);var n=FB.get(t);if(n)return n;var o=t.tag;if(o==="button"){var i=t.showDropPanel,a=t.showModal;n=i?new Iee(e,t,r):a?new Mee(e,t,r):new Nee(e,t,r)}if(o==="select"&&(n=new Vee(e,t,r)),n==null)throw new Error("Invalid tag in menu "+JSON.stringify(t));return FB.set(t,n),n}function Hee(e,t){var r=e.selection;return r!=null&&!X.isCollapsed(r)&&!_.getSelectedElems(e).some(function(n){if(e.isVoid(n))return!0;var o=n.type;return!!["pre","code","table"].includes(o)||void 0})&&!!le.isText(t)}var Uee=(function(){function e(){var t=this;this.$elem=T('<div class="w-e-bar w-e-bar-hidden w-e-hover-bar"></div>'),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null,this.isShow=!1,this.changeHoverbarState=t9(function(){var r=t.isShow,n=t.getSelectedNodeAndMenuKeys()||{},o=n.node,i=o===void 0?null:o,a=n.menuKeys,u=a===void 0?[]:a;i!=null&&t.changeItemsState(),i&&ge.isElement(i)&&r&&t.isSamePath(i,t.prevSelectedNode)||(t.hideAndClean(),i!=null&&(t.registerItems(u),t.setPosition(i),t.show()),t.prevSelectedNode=i)},200),En(function(){var r=t.getEditorInstance(),n=t.$elem;n.on("mousedown",function(i){return i.preventDefault()},{passive:!1}),_.getTextarea(r).$textAreaContainer.append(n),r.on("change",t.changeHoverbarState);var o=t.hideAndClean.bind(t);r.on("scroll",o),r.on("fullScreen",o),r.on("unFullScreen",o)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.hideAndClean=function(){var t=this.$elem;t.removeClass("w-e-bar-show").addClass("w-e-bar-hidden"),this.hoverbarItems=[],t.empty(),this.isShow=!1},e.prototype.checkPositionBottom=function(){var t=this.$elem,r=!1,n=window.innerHeight;n&&n>=360&&n-t[0].getBoundingClientRect().bottom<360&&(r=!0),r?t.addClass("w-e-bar-bottom"):t.removeClass("w-e-bar-bottom")},e.prototype.show=function(){this.$elem.removeClass("w-e-bar-hidden").addClass("w-e-bar-show"),this.isShow=!0,this.checkPositionBottom()},e.prototype.changeItemsState=function(){var t=this;En(function(){t.hoverbarItems.forEach(function(r){r.changeMenuState()})})},e.prototype.registerItems=function(t){var r=this,n=this.$elem;t.forEach(function(o){if(o!=="|")r.registerSingleItem(o);else{var i=kB();n.append(i)}})},e.prototype.registerSingleItem=function(t){var r=this.getEditorInstance(),n=this.menus,o=n[t];if(o==null){var i=Lf[t];if(i==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof i!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");o=i(),n[t]=o}var a=_B(t,o);this.hoverbarItems.push(a),Tw.set(a,r),this.$elem.append(a.$elem)},e.prototype.setPosition=function(t){var r=this.getEditorInstance(),n=this.$elem;if(n.attr("style",""),ge.isElement(t)){var o=bE(r,t,"bar");return n.css(o),void wE(r,n)}if(le.isText(t))return o=yE(r),n.css(o),void wE(r,n);throw new Error("hoverbar.setPosition error, current selected node is not elem nor text")},e.prototype.getSelectedNodeAndMenuKeys=function(){var t=this.getEditorInstance();if(t.selection==null)return null;var r=this.getHoverbarKeysConf(),n=null,o=[],i=function(u){var s=r[u],l=s.match,c=s.menuKeys,f=c===void 0?[]:c,p=l||function(m,g){return _.checkNodeType(g,u)},d=Ue(D.nodes(t,{match:function(m){return p(t,m)},universal:!0}),1),v=d[0];if(v!=null)return n=v[0],o=f,"break"};for(var a in r)if(i(a)==="break")break;return n==null||o.length===0?null:{node:n,menuKeys:o}},e.prototype.getEditorInstance=function(){var t=_w.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.getHoverbarKeysConf=function(){var t=this.getEditorInstance().getConfig().hoverbarKeys,r=t===void 0?{}:t,n=r.text;return n&&n.match==null&&(n.match=Hee),r},e.prototype.isSamePath=function(t,r){if(t==null||r==null)return!1;var n=_.findPath(null,t),o=_.findPath(null,r);return M.equals(n,o)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e})();function TB(e,t,r,n){if(jf.set(e,t),Qs.set(e,r),ge.isElement(e)){var o=e.children;if((o===void 0?[]:o).forEach(function(u,s){return TB(u,s,e,n)}),D.isVoid(n,e)){var i=Ue(oe.texts(e),1),a=Ue(i[0],1)[0];jf.set(a,0),Qs.set(a,e)}}}function qee(e){var t=e.selector,r=t===void 0?"":t,n=e.config,o=n===void 0?{}:n,i=e.content,a=e.html,u=e.plugins,s=u===void 0?[]:u,l=(y=>{var h=y,{apply:b}=h;return h.history={undos:[],redos:[]},h.redo=()=>{var{history:w}=h,{redos:x}=w;if(x.length>0){var A=x[x.length-1];Ys.withoutSaving(h,()=>{D.withoutNormalizing(h,()=>{for(var S of A)h.apply(S)})}),w.redos.pop(),w.undos.push(A)}},h.undo=()=>{var{history:w}=h,{undos:x}=w;if(x.length>0){var A=x[x.length-1];Ys.withoutSaving(h,()=>{D.withoutNormalizing(h,()=>{var S=A.map(Di.inverse).reverse();for(var B of S)h.apply(B)})}),w.redos.push(A),w.undos.pop()}},h.apply=w=>{var{operations:x,history:A}=h,{undos:S}=A,B=S[S.length-1],P=B&&B[B.length-1],H=((z,k)=>!(!k||z.type!=="set_selection"||k.type!=="set_selection"))(w,P),U=Ys.isSaving(h),W=Ys.isMerging(h);if(U==null&&(U=((z,k)=>z.type!=="set_selection"||z.properties!=null&&z.newProperties!=null)(w)),U){if(W==null&&(W=B!=null&&(x.length!==0||((z,k)=>z.type==="set_selection"||!(!k||z.type!=="insert_text"||k.type!=="insert_text"||z.offset!==k.offset+k.text.length||!M.equals(z.path,k.path))||!(!k||z.type!=="remove_text"||k.type!=="remove_text"||z.offset+z.text.length!==k.offset||!M.equals(z.path,k.path)))(w,P)||H)),B&&W)H&&B.pop(),B.push(w);else{var C=[w];S.push(C)}for(;S.length>100;)S.shift();(z=>z.type!=="set_selection")(w)&&(A.redos=[])}b(w)},h})((function(y){var h=y,b=h.insertText,w=h.insertNode,x=h.insertFragment,A=h.dangerouslyInsertHtml;return h.insertText=function(S){if(h.getConfig().maxLength){var B=_.getLeftLengthOfMaxLength(h);B<=0||(B<S.length?b(S.slice(0,B)):b(S))}else b(S)},h.insertNode=function(S){if(h.getConfig().maxLength){var B=_.getLeftLengthOfMaxLength(h);B<=0||B<oe.string(S).length||w(S)}else w(S)},h.insertFragment=function(S){if(h.getConfig().maxLength)if(S.length!==1)S.forEach(function(P){h.insertNode(P)});else{var B=S[0];if(_.getLeftLengthOfMaxLength(h)<oe.string(B).length)return;x(S)}else x(S)},h.dangerouslyInsertHtml=function(S,B){if(S===void 0&&(S=""),B===void 0&&(B=!1),S)if(h.getConfig().maxLength){var P=_.getLeftLengthOfMaxLength(h);if(!(P<=0)){var H=document.createElement("div");H.innerHTML=S;var U=Array.from(H.childNodes).reduce(function(W,C){var z=C.nodeType,k=C.nodeName;return C?z===po.TEXT_NODE?W+(C.textContent||""):z===po.ELEMENT_NODE?uB.has(k.toLowerCase())?W:W+(C.textContent||""):W:W},"");P<U.length||A(S,B)}}else A(S,B)},h})((function(y){var h=y;return h.on=function(b,w){var x=E0(h);if(x.on(b,w),b==="destroyed"&&dB(h,w),b!=="destroyed"){var A=function(){return x.off(b,w)};x.on("destroyed",A),dB(h,A)}},h.once=function(b,w){E0(h).once(b,w)},h.off=function(b,w){E0(h).off(b,w)},h.emit=function(b){for(var w=[],x=1;x<arguments.length;x++)w[x-1]=arguments[x];var A=E0(h);A.emit.apply(A,Cw([b],Ue(w))),b==="destroyed"&&(vee(h).forEach(function(S){return A.off("destroyed",S)}),mee(h))},h})((function(y){var h=y;return h.select=function(b){V.select(h,b)},h.deselect=function(){var b=h.selection,w=_.findDocumentOrShadowRoot(h).getSelection();w&&w.rangeCount>0&&w.removeAllRanges(),b&&V.deselect(y)},h.move=function(b,w){w===void 0&&(w=!1),b&&(b<0||V.move(y,{distance:b,unit:"character",reverse:w}))},h.moveReverse=function(b){h.move(b,!0)},h.restoreSelection=function(){var b=Rw.get(h);b!=null&&(h.focus(),V.select(h,b))},h.getSelectionPosition=function(){return yE(h)},h.getNodePosition=function(b){return bE(h,b)},h.isSelectedAll=function(){var b=h.selection;if(b==null)return!1;var w=Ue(X.edges(b),2),x=w[0],A=w[1],S=Ue(D.edges(h,[]),2),B=S[0],P=S[1];return!(!_e.equals(x,B)||!_e.equals(A,P))},h.selectAll=function(){var b=D.start(h,[]),w=D.end(h,[]);V.select(h,{anchor:b,focus:w})},h})((function(y){var h=y,b=h.onChange,w=h.insertText,x=h.apply,A=h.deleteBackward;return h.insertText=function(S){h.getConfig().readOnly||w(S)},h.apply=function(S){var B,P,H,U,W,C,z,k,I=[];switch(S.type){case"insert_text":case"remove_text":case"set_node":try{for(var Y=wn(D.levels(h,{at:S.path})),$=Y.next();!$.done;$=Y.next()){var ee=Ue($.value,2),Q=ee[0],F=ee[1],O=_.findKey(h,Q);I.push([F,O])}}catch(xe){B={error:xe}}finally{try{$&&!$.done&&(P=Y.return)&&P.call(Y)}finally{if(B)throw B.error}}break;case"insert_node":case"remove_node":case"merge_node":case"split_node":try{for(var j=wn(D.levels(h,{at:M.parent(S.path)})),N=j.next();!N.done;N=j.next()){var q=Ue(N.value,2);Q=q[0],F=q[1],O=_.findKey(h,Q),I.push([F,O])}}catch(xe){H={error:xe}}finally{try{N&&!N.done&&(U=j.return)&&U.call(j)}finally{if(H)throw H.error}}break;case"move_node":try{for(var G=wn(D.levels(h,{at:M.common(M.parent(S.path),M.parent(S.newPath))})),te=G.next();!te.done;te=G.next()){var fe=Ue(te.value,2);Q=fe[0],F=fe[1],O=_.findKey(h,Q),I.push([F,O])}}catch(xe){W={error:xe}}finally{try{te&&!te.done&&(C=G.return)&&C.call(G)}finally{if(W)throw W.error}}}x(S);try{for(var de=wn(I),he=de.next();!he.done;he=de.next()){var J=Ue(he.value,2);F=J[0],O=J[1],Q=Ue(D.node(h,F),1)[0],h0.set(Q,O)}}catch(xe){z={error:xe}}finally{try{he&&!he.done&&(k=de.return)&&k.call(de)}finally{if(z)throw z.error}}},h.deleteBackward=function(S){if(S!=="line")return A(S);if(y.selection&&X.isCollapsed(y.selection)){var B=D.above(y,{match:function(W){return D.isBlock(y,W)},at:y.selection});if(B){var P=Ue(B,2)[1],H=D.range(y,P,y.selection.anchor),U=(function(W,C){var z=D.range(W,X.end(C)),k=Array.from(D.positions(W,{at:C})),I=0,Y=k.length,$=Math.floor(Y/2);if(KO(W,D.range(W,k[I]),z))return D.range(W,k[I],z);if(k.length<2)return D.range(W,k[k.length-1],z);for(;$!==k.length&&$!==I;)KO(W,D.range(W,k[$]),z)?Y=$:I=$,$=Math.floor((I+Y)/2);return D.range(W,k[Y],z)})(h,H);X.isCollapsed(U)||V.delete(y,{at:U})}}},h.onChange=function(){var S=h.selection;S!=null&&Rw.set(h,S),h.emit("change"),b()},h.handleTab=function(){h.insertText(" ")},h.getHtml=function(){var S=h.children;return(S===void 0?[]:S).map(function(B){return qO(B,h)}).join("")},h.getText=function(){var S=h.children;return(S===void 0?[]:S).map(function(B){return oe.string(B)}).join(`
38
+ `)},h.getSelectionText=function(){var S=h.selection;return S==null?"":D.string(y,S)},h.getElemsByType=function(S,B){var P,H;B===void 0&&(B=!1);var U=[],W=D.nodes(h,{at:[],universal:!0});try{for(var C=wn(W),z=C.next();!z.done;z=C.next()){var k=Ue(z.value,1)[0];if(ge.isElement(k)&&(B?k.type.indexOf(S)>=0:k.type===S)){var I=WO(_.findKey(h,k).id);U.push(bn(bn({},k),{id:I}))}}}catch(Y){P={error:Y}}finally{try{z&&!z.done&&(H=C.return)&&H.call(C)}finally{if(P)throw P.error}}return U},h.getElemsByTypePrefix=function(S){return h.getElemsByType(S,!0)},h.isEmpty=function(){var S=h.children,B=S===void 0?[]:S;if(B.length>1)return!1;var P=B[0];if(P==null)return!0;if(ge.isElement(P)&&P.type==="paragraph"){var H=P.children,U=H===void 0?[]:H;if(U.length>1)return!1;var W=U[0];if(W==null||le.isText(W)&&W.text==="")return!0}return!1},h.clear=function(){V.delete(h,{at:{anchor:D.start(h,[]),focus:D.end(h,[])}}),h.children.length===0&&V.insertNodes(h,[{type:"paragraph",children:[{text:""}]}])},h.getParentNode=function(S){return _.getParentNode(h,S)},h.dangerouslyInsertHtml=function(S,B){if(S===void 0&&(S=""),B===void 0&&(B=!1),S){var P=document.createElement("div");P.innerHTML=S;var H=Array.from(P.childNodes);if(H=H.filter(function(z){var k=z.nodeType,I=z.nodeName;return k===po.TEXT_NODE||k===po.ELEMENT_NODE&&!uB.has(I.toLowerCase())}),H.length!==0){var U=h.selection;if(U!=null){var W=null;_.isSelectedEmptyParagraph(h)&&!B&&(W=[U.focus.path[0]]),P.setAttribute("hidden","true"),document.body.appendChild(P);var C=0;H.forEach(function(z){var k=z.nodeType,I=z.nodeName,Y=z.textContent,$=Y===void 0?"":Y;if(k!==po.TEXT_NODE)if(I!=="BR"){var ee=z,Q=!1;if(YO.includes(I.toLowerCase()))Q=!0;else for(var F in y0)if(ee.matches(F)){Q=!0;break}if(Q){var O=dE(T(ee),h);return Array.isArray(O)?(O.forEach(function(N){return sB(h,N)}),C++):(sB(h,O),C++),void(_.isSelectedVoidNode(h)&&h.move(1))}var j=window.getComputedStyle(ee).display;_.isSelectedEmptyParagraph(h)||j.indexOf("inline")<0&&h.insertBreak(),h.dangerouslyInsertHtml(ee.innerHTML,!0)}else h.insertText(`
39
+ `);else{if(!$||!$.trim())return;h.insertNode({text:$})}}),C&&W&&_.isEmptyPath(h,W)&&V.removeNodes(h,{at:W}),P.remove()}}}},h.setHtml=function(S){S===void 0&&(S="");var B=h.isDisabled(),P=h.isFocused(),H=JSON.stringify(h.selection);h.enable(),h.focus(),h.clear();var U=oB(h,S);if(V.insertFragment(h,U),P||(h.deselect(),h.blur()),B&&(h.deselect(),h.disable()),h.isFocused())try{h.select(JSON.parse(H))}catch{h.select(D.start(h,[]))}},h})((function(y){var h=y;return h.getAllMenuKeys=function(){var b=[];for(var w in Lf)b.push(w);return b},h.getConfig=function(){var b=eO.get(h);if(b==null)throw new Error("Can not get editor config");return b},h.getMenuConfig=function(b){var w=h.getConfig().MENU_CONF;return(w===void 0?{}:w)[b]||{}},h.alert=function(b,w){w===void 0&&(w="info");var x=h.getConfig().customAlert;x&&x(b,w)},h})((function(y){var h=nee(AG());return h.id="wangEditor-"+cQ++,h.isDestroyed=!1,h.isFullScreen=!1,h.focus=function(b){if(_.toDOMNode(h,h).focus({preventScroll:!0}),mu.set(h,!0),b){var w=D.end(h,[]);V.select(h,w)}else{var x=Rw.get(h);x?V.select(h,x):V.select(h,D.start(h,[]))}},h.isFocused=function(){return!!mu.get(h)},h.blur=function(){_.toDOMNode(h,h).blur(),V.deselect(h),mu.set(h,!1)},h.updateView=function(){_.getTextarea(h).changeViewState();var b=_.getToolbar(h);b&&b.changeToolbarState();var w=_.getHoverbar(h);w&&w.changeHoverbarState()},h.destroy=function(){if(!h.isDestroyed){var b=_.getTextarea(h);b.destroy(),Ow.delete(h),Bw.delete(b);var w=_.getToolbar(h);w&&(w.destroy(),l0.delete(h),Fw.delete(w));var x=_.getHoverbar(h);x&&(x.destroy(),c0.delete(h),_w.delete(x)),h.isDestroyed=!0,h.emit("destroyed")}},h.scrollToElem=function(b){if(!h.getConfig().scroll){var w="编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能";return w+=`
40
+ You has disabled editor scroll, please do this yourself`,void console.warn(w)}var x=T("#"+b);if(x.length!==0){var A=x[0];if(!_.hasDOMNode(h,A))return w="Element (found by id is '"+b+"') is not in editor DOM",w+=`
41
+ 通过 id '`+b+"' 找到的 element 不在 editor DOM 之内",void console.error(w,A);var S=_.getTextarea(h),B=S.$textAreaContainer,P=S.$scroll,H=x.offset().top,U=B.offset().top;P[0].scrollBy({top:H-U,behavior:"smooth"})}},h.showProgressBar=function(b){b<1||_.getTextarea(h).changeProgress(b)},h.hidePanelOrModal=function(){var b=Pw.get(h);b?.forEach(function(w){return w.hide()})},h.enable=function(){h.getConfig().readOnly=!1,h.updateView()},h.disable=function(){h.getConfig().readOnly=!0,h.updateView()},h.isDisabled=function(){return h.getConfig().readOnly},h.toDOMNode=function(b){return _.toDOMNode(h,b)},h.fullScreen=function(){if(!h.isFullScreen){var b=null,w=_.getToolbar(h);w&&(b=w.$box);var x=_.getTextarea(h).$box.parent();if(b&&b.parent()[0]!==x[0])throw new Error(`Can not set full screen, cause toolbar DOM parent is not equal to textarea DOM parent
42
+ 不能设置全屏,因为 toolbar DOM 父节点和 textarea DOM 父节点不一致`);x.addClass("w-e-full-screen-container");var A=x.css("z-index");x.attr("data-z-index",A.toString()),h.isFullScreen=!0,h.emit("fullScreen")}},h.unFullScreen=function(){if(h.isFullScreen){var b=_.getTextarea(h).$box.parent();setTimeout(function(){b.removeClass("w-e-full-screen-container"),h.isFullScreen=!1,h.emit("unFullScreen")},200)}},h.getEditableContainer=function(){return _.getTextarea(h).$textAreaContainer[0]},h})()))))));if(r&&(function(y,h){return nB(y,"data-w-e-textarea",h)})(l,r))throw new Error("Repeated create editor by selector '"+r+"'");var c=(function(y){y===void 0&&(y={});var h=r9(dO),b={},w=y.MENU_CONF,x=w===void 0?{}:w;return Hb(h,function(A,S){b[S]=bn(bn({},A),x[S]||{})}),delete y.MENU_CONF,bn({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:b,hoverbarKeys:{},customAlert:function(A,S){window.alert(S+`:
43
+ `+A)}},y)})(o);eO.set(l,c);var f=c.hoverbarKeys,p=f===void 0?{}:f;if(s.forEach(function(y){l=y(l)}),a!=null&&(l.children=oB(l,a)),i&&i.length&&(l.children=i),l.children.length===0&&(l.children=[{type:"paragraph",children:[{text:""}]}]),_.normalizeContent(l),r){var d=new jee(r);Ow.set(l,d),Bw.set(d,l),d.changeViewState(),En(function(){var y=d.$scroll;y!=null&&y.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
44
+ Textarea height < 300px . This may be cause modal and hoverbar position error`,y)});var v=void 0;Object.keys(p).length>0&&(v=new Uee,_w.set(v,l),c0.set(l,v)),l.on("change",function(){l.hidePanelOrModal()}),l.on("scroll",function(){l.hidePanelOrModal()})}else l.children.forEach(function(y,h){return TB(y,h,l,l)});var m=c.onCreated,g=c.onDestroyed;return m&&l.on("created",function(){return m(l)}),g&&l.on("destroyed",function(){return g(l)}),En(function(){return l.emit("created")}),l}var Wee=Jg("splice"),Gee=re.TypeError,Kee=Math.max,Yee=Math.min;Ct({target:"Array",proto:!0,forced:!Wee},{splice:function(e,t){var r,n,o,i,a,u,s=ji(this),l=hu(s),c=Gs(e,l),f=arguments.length;if(f===0?r=n=0:f===1?(r=0,n=l-c):(r=f-2,n=Yee(Kee(yf(t),0),l-c)),l+r-n>9007199254740991)throw Gee("Maximum allowed length exceeded");for(o=Q9(s,n),i=0;i<n;i++)(a=c+i)in s&&Af(o,i,s[a]);if(o.length=n,r<n){for(i=c;i<l-n;i++)u=i+r,(a=i+n)in s?s[u]=s[a]:delete s[u];for(i=l;i>l-n+r;i--)delete s[i-1]}else if(r>n)for(i=l-n;i>c;i--)u=i+r-1,(a=i+n-1)in s?s[u]=s[a]:delete s[u];for(i=0;i<r;i++)s[i+c]=arguments[i+2];return s.length=l-n+r,o}});var Xee=(function(){function e(t,r){var n=this;this.$toolbar=T('<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>'),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=t9(function(){n.toolbarItems.forEach(function(a){a.changeMenuState()})},200),this.config=r;var o=T(t);if(o.length===0)throw new Error("Cannot find toolbar DOM by selector '"+t+"'");this.$box=o;var i=this.$toolbar;i.on("mousedown",function(a){return a.preventDefault()},{passive:!1}),o.append(i),En(function(){n.registerItems(),n.changeToolbarState(),n.getEditorInstance().on("change",n.changeToolbarState)})}return e.prototype.getMenus=function(){return this.menus},e.prototype.getConfig=function(){return this.config},e.prototype.registerItems=function(){var t=this,r="",n=this.$toolbar,o=this.config,i=o.toolbarKeys,a=i===void 0?[]:i,u=o.insertKeys,s=u===void 0?{index:0,keys:[]}:u,l=o.excludeKeys,c=l===void 0?[]:l,f=r9(a);s.keys.length>0&&(typeof s.keys=="string"&&(s.keys=[s.keys]),s.keys.forEach(function(v,m){f.splice(s.index+m,0,v)}));var p=f.filter(function(v){if(typeof v=="string"){if(c.includes(v))return!1}else if(c.includes(v.key))return!1;return!0}),d=p.length;p.forEach(function(v,m){if(v==="|"){if(m===0||m+1===d||r==="|")return;var g=kB();return n.append(g),void(r=v)}if(typeof v=="string")return t.registerSingleItem(v,t),void(r=v);t.registerGroup(v),r="group"})},e.prototype.registerGroup=function(t){var r=this,n=this.$toolbar,o=(function(l){return new BB(l)})(t),i=t.menuKeys,a=i===void 0?[]:i,u=this.config.excludeKeys,s=u===void 0?[]:u;a.forEach(function(l){s.includes(l)||r.registerSingleItem(l,o)}),n.append(o.$elem)},e.prototype.registerSingleItem=function(t,r){var n=this.getEditorInstance(),o=r instanceof BB,i=this.menus,a=i[t];if(a==null){var u=Lf[t];if(u==null)throw new Error("Not found menu item factory by key '"+t+"'");if(typeof u!="function")throw new Error("Menu item factory (key='"+t+"') is not a function");a=u(),i[t]=a}else console.warn("Duplicated toolbar menu key '"+t+`'
45
+ 重复注册了菜单栏 menu '`+t+"'");var s=_B(t,a,o);this.toolbarItems.push(s),Tw.set(s,n),o?r.appendBarItem(s):r.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var t=Fw.get(this);if(t==null)throw new Error("Can not get editor instance");return t},e.prototype.destroy=function(){this.$toolbar.remove(),this.menus={},this.toolbarItems=[]},e})(),$ee=Us.EXISTS,Zee=Mn.f,PB=Function.prototype,Jee=me(PB.toString),jB=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Qee=me(jB.exec);function NB(e){var t=e.server,r=t===void 0?"":t,n=e.fieldName,o=n===void 0?"":n,i=e.maxFileSize,a=i===void 0?10485760:i,u=e.maxNumberOfFiles,s=u===void 0?100:u,l=e.meta,c=l===void 0?{}:l,f=e.metaWithUrl,p=f!==void 0&&f,d=e.headers,v=d===void 0?{}:d,m=e.withCredentials,g=m!==void 0&&m,y=e.timeout,h=y===void 0?1e4:y,b=e.onBeforeUpload,w=b===void 0?function(C){return C}:b,x=e.onSuccess,A=x===void 0?function(C,z){}:x,S=e.onError,B=S===void 0?function(C,z,k){console.error(C.name+" upload error",z,k)}:S,P=e.onProgress,H=P===void 0?function(C){}:P;if(!r)throw new Error(`Cannot get upload server address
46
+ 没有配置上传地址`);if(!o)throw new Error(`Cannot get fieldName
47
+ 没有配置 fieldName`);var U=r;p&&(U=(function(C,z){var k=Ue(C.split("#"),2),I=k[0],Y=k[1],$=[];Hb(z,function(Q,F){$.push(F+"="+Q)});var ee=$.join("&");return I=I.indexOf("?")>0?I+"&"+ee:I+"?"+ee,Y?I+"#"+Y:I})(U,c));var W=new af({onBeforeUpload:w,restrictions:{maxFileSize:a,maxNumberOfFiles:s},meta:c}).use(D$,{endpoint:U,headers:v,formData:!0,fieldName:o,bundle:!0,withCredentials:g,timeout:h});return W.on("upload-success",function(C,z){var k=z.body,I=k===void 0?{}:k;try{A(C,I)}catch(Y){console.error("wangEditor upload file - onSuccess error",Y)}W.removeFile(C.id)}),W.on("progress",function(C){C<1||H(C)}),W.on("upload-error",function(C,z,k){try{B(C,z,k)}catch(I){console.error("wangEditor upload file - onError error",I)}W.removeFile(C.id)}),W.on("restriction-failed",function(C,z){try{B(C,z)}catch(k){console.error("wangEditor upload file - onError error",k)}W.removeFile(C.id)}),W}function Mi(e){return Mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mi(e)}function ete(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),n.forEach(function(o){ete(e,o,r[o])})}return e}function Xo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function RB(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function $o(e,t,r){return t&&RB(e.prototype,t),r&&RB(e,r),e}function Cu(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yf(e,t){if(t&&(Mi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cu(e)}function fl(e){return fl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},fl(e)}function _E(e,t){return _E=Object.setPrototypeOf||function(r,n){return r.__proto__=n,r},_E(e,t)}function D0(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_E(e,t)}nr&&!$ee&&Zee(PB,"name",{configurable:!0,get:function(){try{return Qee(jB,Jee(this))[1]}catch{return""}}});var tte={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},Zo=new((function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Xo(this,e),this.init(t,r)}return $o(e,[{key:"init",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=r.prefix||"i18next:",this.logger=t||tte,this.options=r,this.debug=r.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return this.forward(r,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,r,n,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]="".concat(n).concat(this.prefix," ").concat(t[0])),this.logger[r](t))}},{key:"create",value:function(t){return new e(this.logger,Gt({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e})()),zi=(function(){function e(){Xo(this,e),this.observers={}}return $o(e,[{key:"on",value:function(t,r){var n=this;return t.split(" ").forEach(function(o){n.observers[o]=n.observers[o]||[],n.observers[o].push(r)}),this}},{key:"off",value:function(t,r){this.observers[t]&&(r?this.observers[t]=this.observers[t].filter(function(n){return n!==r}):delete this.observers[t])}},{key:"emit",value:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];if(this.observers[t]){var i=[].concat(this.observers[t]);i.forEach(function(u){u.apply(void 0,n)})}if(this.observers["*"]){var a=[].concat(this.observers["*"]);a.forEach(function(u){u.apply(u,[t].concat(n))})}}}]),e})();function Xf(){var e,t,r=new Promise(function(n,o){e=n,t=o});return r.resolve=e,r.reject=t,r}function IB(e){return e==null?"":""+e}function rte(e,t,r){e.forEach(function(n){t[n]&&(r[n]=t[n])})}function TE(e,t,r){function n(u){return u&&u.indexOf("###")>-1?u.replace(/###/g,"."):u}function o(){return!e||typeof e=="string"}for(var i=typeof t!="string"?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=n(i.shift());!e[a]&&r&&(e[a]=new r),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:n(i.shift())}}function LB(e,t,r){var n=TE(e,t,Object);n.obj[n.k]=r}function S0(e,t){var r=TE(e,t),n=r.obj,o=r.k;if(n)return n[o]}function MB(e,t,r){var n=S0(e,r);return n!==void 0?n:S0(t,r)}function zB(e,t,r){for(var n in t)n!=="__proto__"&&n!=="constructor"&&(n in e?typeof e[n]=="string"||e[n]instanceof String||typeof t[n]=="string"||t[n]instanceof String?r&&(e[n]=t[n]):zB(e[n],t[n],r):e[n]=t[n]);return e}function dl(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var nte={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function ote(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return nte[t]}):e}var A0=typeof window<"u"&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function VB(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var n=t.split(r),o=e,i=0;i<n.length;++i){if(!o||typeof o[n[i]]=="string"&&i+1<n.length)return;if(o[n[i]]===void 0){for(var a=2,u=n.slice(i,i+a).join(r),s=o[u];s===void 0&&n.length>i+a;)a++,s=o[u=n.slice(i,i+a).join(r)];if(s===void 0)return;if(typeof s=="string")return s;if(u&&typeof s[u]=="string")return s[u];var l=n.slice(i+a).join(r);return l?VB(s,l,r):void 0}o=o[n[i]]}return o}}var ite=(function(e){function t(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Xo(this,t),n=Yf(this,fl(t).call(this)),A0&&zi.call(Cu(n)),n.data=r||{},n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.options.ignoreJSONStructure===void 0&&(n.options.ignoreJSONStructure=!0),n}return D0(t,zi),$o(t,[{key:"addNamespaces",value:function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}},{key:"removeNamespaces",value:function(r){var n=this.options.ns.indexOf(r);n>-1&&this.options.ns.splice(n,1)}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator,u=i.ignoreJSONStructure!==void 0?i.ignoreJSONStructure:this.options.ignoreJSONStructure,s=[r,n];o&&typeof o!="string"&&(s=s.concat(o)),o&&typeof o=="string"&&(s=s.concat(a?o.split(a):o)),r.indexOf(".")>-1&&(s=r.split("."));var l=S0(this.data,s);return l||!u||typeof o!="string"?l:VB(this.data&&this.data[r]&&this.data[r][n],o,a)}},{key:"addResource",value:function(r,n,o,i){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},u=this.options.keySeparator;u===void 0&&(u=".");var s=[r,n];o&&(s=s.concat(u?o.split(u):o)),r.indexOf(".")>-1&&(i=n,n=(s=r.split("."))[1]),this.addNamespaces(n),LB(this.data,s,i),a.silent||this.emit("added",r,n,o,i)}},{key:"addResources",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var a in o)typeof o[a]!="string"&&Object.prototype.toString.apply(o[a])!=="[object Array]"||this.addResource(r,n,a,o[a],{silent:!0});i.silent||this.emit("added",r,n,o)}},{key:"addResourceBundle",value:function(r,n,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[r,n];r.indexOf(".")>-1&&(i=o,o=n,n=(s=r.split("."))[1]),this.addNamespaces(n);var l=S0(this.data,s)||{};i?zB(l,o,a):l=Gt({},l,o),LB(this.data,s,l),u.silent||this.emit("added",r,n,o)}},{key:"removeResourceBundle",value:function(r,n){this.hasResourceBundle(r,n)&&delete this.data[r][n],this.removeNamespaces(n),this.emit("removed",r,n)}},{key:"hasResourceBundle",value:function(r,n){return this.getResource(r,n)!==void 0}},{key:"getResourceBundle",value:function(r,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?Gt({},{},this.getResource(r,n)):this.getResource(r,n)}},{key:"getDataByLanguage",value:function(r){return this.data[r]}},{key:"toJSON",value:function(){return this.data}}]),t})(),HB={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,r,n,o){var i=this;return e.forEach(function(a){i.processors[a]&&(t=i.processors[a].process(t,r,n,o))}),t}},UB={},qB=(function(e){function t(r){var n,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Xo(this,t),n=Yf(this,fl(t).call(this)),A0&&zi.call(Cu(n)),rte(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],r,Cu(n)),n.options=o,n.options.keySeparator===void 0&&(n.options.keySeparator="."),n.logger=Zo.create("translator"),n}return D0(t,zi),$o(t,[{key:"changeLanguage",value:function(r){r&&(this.language=r)}},{key:"exists",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var o=this.resolve(r,n);return o&&o.res!==void 0}},{key:"extractFromKey",value:function(r,n){var o=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;o===void 0&&(o=":");var i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS;if(o&&r.indexOf(o)>-1){var u=r.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:r,namespaces:a};var s=r.split(o);(o!==i||o===i&&this.options.ns.indexOf(s[0])>-1)&&(a=s.shift()),r=s.join(i)}return typeof a=="string"&&(a=[a]),{key:r,namespaces:a}}},{key:"translate",value:function(r,n,o){var i=this;if(Mi(n)!=="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,u=this.extractFromKey(r[r.length-1],n),s=u.key,l=u.namespaces,c=l[l.length-1],f=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&f.toLowerCase()==="cimode"){if(p){var d=n.nsSeparator||this.options.nsSeparator;return c+d+s}return s}var v=this.resolve(r,n),m=v&&v.res,g=v&&v.usedKey||s,y=v&&v.exactUsedKey||s,h=Object.prototype.toString.apply(m),b=["[object Number]","[object Function]","[object RegExp]"],w=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,A=typeof m!="string"&&typeof m!="boolean"&&typeof m!="number";if(x&&m&&A&&b.indexOf(h)<0&&(typeof w!="string"||h!=="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,m,Gt({},n,{ns:l})):"key '".concat(s," (").concat(this.language,")' returned an object instead of string.");if(a){var S=h==="[object Array]",B=S?[]:{},P=S?y:g;for(var H in m)if(Object.prototype.hasOwnProperty.call(m,H)){var U="".concat(P).concat(a).concat(H);B[H]=this.translate(U,Gt({},n,{joinArrays:!1,ns:l})),B[H]===U&&(B[H]=m[H])}m=B}}else if(x&&typeof w=="string"&&h==="[object Array]")(m=m.join(w))&&(m=this.extendTranslation(m,r,n,o));else{var W=!1,C=!1,z=n.count!==void 0&&typeof n.count!="string",k=t.hasDefaultValue(n),I=z?this.pluralResolver.getSuffix(f,n.count):"",Y=n["defaultValue".concat(I)]||n.defaultValue;!this.isValidLookup(m)&&k&&(W=!0,m=Y),this.isValidLookup(m)||(C=!0,m=s);var $=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,ee=$&&C?void 0:m,Q=k&&Y!==m&&this.options.updateMissing;if(C||W||Q){if(this.logger.log(Q?"updateKey":"missingKey",f,c,s,Q?Y:m),a){var F=this.resolve(s,Gt({},n,{keySeparator:!1}));F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var O=[],j=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&j&&j[0])for(var N=0;N<j.length;N++)O.push(j[N]);else this.options.saveMissingTo==="all"?O=this.languageUtils.toResolveHierarchy(n.lng||this.language):O.push(n.lng||this.language);var q=function(G,te,fe){i.options.missingKeyHandler?i.options.missingKeyHandler(G,c,te,Q?fe:ee,Q,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(G,c,te,Q?fe:ee,Q,n),i.emit("missingKey",G,c,te,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&z?O.forEach(function(G){i.pluralResolver.getSuffixes(G).forEach(function(te){q([G],s+te,n["defaultValue".concat(te)]||Y)})}):q(O,s,Y))}m=this.extendTranslation(m,r,n,v,o),C&&m===s&&this.options.appendNamespaceToMissingKey&&(m="".concat(c,":").concat(s)),(C||W)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(r,n,o,i,a){var u=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,o,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!o.skipInterpolation){o.interpolation&&this.interpolator.init(Gt({},o,{interpolation:Gt({},this.options.interpolation,o.interpolation)}));var s,l=o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=r.match(this.interpolator.nestingRegexp);s=c&&c.length}var f=o.replace&&typeof o.replace!="string"?o.replace:o;if(this.options.interpolation.defaultVariables&&(f=Gt({},this.options.interpolation.defaultVariables,f)),r=this.interpolator.interpolate(r,f,o.lng||this.language,o),l){var p=r.match(this.interpolator.nestingRegexp);s<(p&&p.length)&&(o.nest=!1)}o.nest!==!1&&(r=this.interpolator.nest(r,function(){for(var m=arguments.length,g=new Array(m),y=0;y<m;y++)g[y]=arguments[y];return a&&a[0]===g[0]&&!o.context?(u.logger.warn("It seems you are nesting recursively key: ".concat(g[0]," in key: ").concat(n[0])),null):u.translate.apply(u,g.concat([n]))},o)),o.interpolation&&this.interpolator.reset()}var d=o.postProcess||this.options.postProcess,v=typeof d=="string"?[d]:d;return r!=null&&v&&v.length&&o.applyPostProcessor!==!1&&(r=HB.handle(v,r,n,this.options&&this.options.postProcessPassResolved?Gt({i18nResolved:i},o):o,this)),r}},{key:"resolve",value:function(r){var n,o,i,a,u,s=this,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return typeof r=="string"&&(r=[r]),r.forEach(function(c){if(!s.isValidLookup(n)){var f=s.extractFromKey(c,l),p=f.key;o=p;var d=f.namespaces;s.options.fallbackNS&&(d=d.concat(s.options.fallbackNS));var v=l.count!==void 0&&typeof l.count!="string",m=l.context!==void 0&&(typeof l.context=="string"||typeof l.context=="number")&&l.context!=="",g=l.lngs?l.lngs:s.languageUtils.toResolveHierarchy(l.lng||s.language,l.fallbackLng);d.forEach(function(y){s.isValidLookup(n)||(u=y,!UB["".concat(g[0],"-").concat(y)]&&s.utils&&s.utils.hasLoadedNamespace&&!s.utils.hasLoadedNamespace(u)&&(UB["".concat(g[0],"-").concat(y)]=!0,s.logger.warn('key "'.concat(o,'" for languages "').concat(g.join(", "),`" won't get resolved as namespace "`).concat(u,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(function(h){if(!s.isValidLookup(n)){a=h;var b,w,x=p,A=[x];for(s.i18nFormat&&s.i18nFormat.addLookupKeys?s.i18nFormat.addLookupKeys(A,p,h,y,l):(v&&(b=s.pluralResolver.getSuffix(h,l.count)),v&&m&&A.push(x+b),m&&A.push(x+="".concat(s.options.contextSeparator).concat(l.context)),v&&A.push(x+=b));w=A.pop();)s.isValidLookup(n)||(i=w,n=s.getResource(h,y,w,l))}}))})}}),{res:n,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:u}}},{key:"isValidLookup",value:function(r){return!(r===void 0||!this.options.returnNull&&r===null||!this.options.returnEmptyString&&r==="")}},{key:"getResource",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,n,o,i):this.resourceStore.getResource(r,n,o,i)}}],[{key:"hasDefaultValue",value:function(r){var n="defaultValue";for(var o in r)if(Object.prototype.hasOwnProperty.call(r,o)&&n===o.substring(0,n.length)&&r[o]!==void 0)return!0;return!1}}]),t})();function PE(e){return e.charAt(0).toUpperCase()+e.slice(1)}var ate=(function(){function e(t){Xo(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Zo.create("languageUtils")}return $o(e,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var r=t.split("-");return r.length===2?null:(r.pop(),r[r.length-1].toLowerCase()==="x"?null:this.formatLanguageCode(r.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var r=t.split("-");return this.formatLanguageCode(r[0])}},{key:"formatLanguageCode",value:function(t){if(typeof t=="string"&&t.indexOf("-")>-1){var r=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map(function(o){return o.toLowerCase()}):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=PE(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!=="sgn"&&n[2].length===2&&(n[2]=n[2].toUpperCase()),r.indexOf(n[1].toLowerCase())>-1&&(n[1]=PE(n[1].toLowerCase())),r.indexOf(n[2].toLowerCase())>-1&&(n[2]=PE(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){return this.logger.deprecate("languageUtils.isWhitelisted",`function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it's usage asap.`),this.isSupportedCode(t)}},{key:"isSupportedCode",value:function(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}},{key:"getBestMatchFromCodes",value:function(t){var r,n=this;return t?(t.forEach(function(o){if(!r){var i=n.formatLanguageCode(o);n.options.supportedLngs&&!n.isSupportedCode(i)||(r=i)}}),!r&&this.options.supportedLngs&&t.forEach(function(o){if(!r){var i=n.getLanguagePartFromCode(o);if(n.isSupportedCode(i))return r=i;r=n.options.supportedLngs.find(function(a){if(a.indexOf(i)===0)return a})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r):null}},{key:"getFallbackCodes",value:function(t,r){if(!t)return[];if(typeof t=="function"&&(t=t(r)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!r)return t.default||[];var n=t[r];return n||(n=t[this.getScriptPartFromCode(r)]),n||(n=t[this.formatLanguageCode(r)]),n||(n=t[this.getLanguagePartFromCode(r)]),n||(n=t.default),n||[]}},{key:"toResolveHierarchy",value:function(t,r){var n=this,o=this.getFallbackCodes(r||this.options.fallbackLng||[],t),i=[],a=function(u){u&&(n.isSupportedCode(u)?i.push(u):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(u)))};return typeof t=="string"&&t.indexOf("-")>-1?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):typeof t=="string"&&a(this.formatLanguageCode(t)),o.forEach(function(u){i.indexOf(u)<0&&a(n.formatLanguageCode(u))}),i}}]),e})(),ute=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],ste={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};function lte(){var e={};return ute.forEach(function(t){t.lngs.forEach(function(r){e[r]={numbers:t.nr,plurals:ste[t.fc]}})}),e}var cte=(function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Xo(this,e),this.languageUtils=t,this.options=r,this.logger=Zo.create("pluralResolver"),this.rules=lte()}return $o(e,[{key:"addRule",value:function(t,r){this.rules[t]=r}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var r=this.getRule(t);return r&&r.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(t,r){return this.getSuffixes(t).map(function(n){return r+n})}},{key:"getSuffixes",value:function(t){var r=this,n=this.getRule(t);return n?n.numbers.map(function(o){return r.getSuffix(t,o)}):[]}},{key:"getSuffix",value:function(t,r){var n=this,o=this.getRule(t);if(o){var i=o.noAbs?o.plurals(r):o.plurals(Math.abs(r)),a=o.numbers[i];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(a===2?a="plural":a===1&&(a=""));var u=function(){return n.options.prepend&&a.toString()?n.options.prepend+a.toString():a.toString()};return this.options.compatibilityJSON==="v1"?a===1?"":typeof a=="number"?"_plural_".concat(a.toString()):u():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?u():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),e})(),fte=(function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Xo(this,e),this.logger=Zo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(r){return r},this.init(t)}return $o(e,[{key:"init",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var r=t.interpolation;this.escape=r.escape!==void 0?r.escape:ote,this.escapeValue=r.escapeValue===void 0||r.escapeValue,this.useRawValueToEscape=r.useRawValueToEscape!==void 0&&r.useRawValueToEscape,this.prefix=r.prefix?dl(r.prefix):r.prefixEscaped||"{{",this.suffix=r.suffix?dl(r.suffix):r.suffixEscaped||"}}",this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||",",this.unescapePrefix=r.unescapeSuffix?"":r.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":r.unescapeSuffix||"",this.nestingPrefix=r.nestingPrefix?dl(r.nestingPrefix):r.nestingPrefixEscaped||dl("$t("),this.nestingSuffix=r.nestingSuffix?dl(r.nestingSuffix):r.nestingSuffixEscaped||dl(")"),this.nestingOptionsSeparator=r.nestingOptionsSeparator?r.nestingOptionsSeparator:r.nestingOptionsSeparator||",",this.maxReplaces=r.maxReplaces?r.maxReplaces:1e3,this.alwaysFormat=r.alwaysFormat!==void 0&&r.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var r="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(r,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(t,r,n,o){var i,a,u,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(m){return m.replace(/\$/g,"$$$$")}var f=function(m){if(m.indexOf(s.formatSeparator)<0){var g=MB(r,l,m);return s.alwaysFormat?s.format(g,void 0,n,Gt({},o,r,{interpolationkey:m})):g}var y=m.split(s.formatSeparator),h=y.shift().trim(),b=y.join(s.formatSeparator).trim();return s.format(MB(r,l,h),b,n,Gt({},o,r,{interpolationkey:h}))};this.resetRegExp();var p=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,d=o&&o.interpolation&&o.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables,v=[{regex:this.regexpUnescape,safeValue:function(m){return c(m)}},{regex:this.regexp,safeValue:function(m){return s.escapeValue?c(s.escape(m)):c(m)}}];return v.forEach(function(m){for(u=0;i=m.regex.exec(t);){if((a=f(i[1].trim()))===void 0)if(typeof p=="function"){var g=p(t,i,o);a=typeof g=="string"?g:""}else{if(d){a=i[0];continue}s.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(t)),a=""}else typeof a=="string"||s.useRawValueToEscape||(a=IB(a));var y=m.safeValue(a);if(t=t.replace(i[0],y),d?(m.regex.lastIndex+=y.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,++u>=s.maxReplaces)break}}),t}},{key:"nest",value:function(t,r){var n,o,i=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=Gt({},a);function s(p,d){var v=this.nestingOptionsSeparator;if(p.indexOf(v)<0)return p;var m=p.split(new RegExp("".concat(v,"[ ]*{"))),g="{".concat(m[1]);p=m[0],g=(g=this.interpolate(g,u)).replace(/'/g,'"');try{u=JSON.parse(g),d&&(u=Gt({},d,u))}catch(y){return this.logger.warn("failed parsing options string in nesting for key ".concat(p),y),"".concat(p).concat(v).concat(g)}return delete u.defaultValue,p}for(u.applyPostProcessor=!1,delete u.defaultValue;n=this.nestingRegexp.exec(t);){var l=[],c=!1;if(n[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map(function(p){return p.trim()});n[1]=f.shift(),l=f,c=!0}if((o=r(s.call(this,n[1].trim(),u),u))&&n[0]===t&&typeof o!="string")return o;typeof o!="string"&&(o=IB(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(t)),o=""),c&&(o=l.reduce(function(p,d){return i.format(p,d,a.lng,Gt({},a,{interpolationkey:n[1].trim()}))},o.trim())),t=t.replace(n[0],o),this.regexp.lastIndex=0}return t}}]),e})(),dte=(function(e){function t(r,n,o){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Xo(this,t),i=Yf(this,fl(t).call(this)),A0&&zi.call(Cu(i)),i.backend=r,i.store=n,i.services=o,i.languageUtils=o.languageUtils,i.options=a,i.logger=Zo.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(o,a.backend,a),i}return D0(t,zi),$o(t,[{key:"queueLoad",value:function(r,n,o,i){var a=this,u=[],s=[],l=[],c=[];return r.forEach(function(f){var p=!0;n.forEach(function(d){var v="".concat(f,"|").concat(d);!o.reload&&a.store.hasResourceBundle(f,d)?a.state[v]=2:a.state[v]<0||(a.state[v]===1?s.indexOf(v)<0&&s.push(v):(a.state[v]=1,p=!1,s.indexOf(v)<0&&s.push(v),u.indexOf(v)<0&&u.push(v),c.indexOf(d)<0&&c.push(d)))}),p||l.push(f)}),(u.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:i}),{toLoad:u,pending:s,toLoadLanguages:l,toLoadNamespaces:c}}},{key:"loaded",value:function(r,n,o){var i=r.split("|"),a=i[0],u=i[1];n&&this.emit("failedLoading",a,u,n),o&&this.store.addResourceBundle(a,u,o),this.state[r]=n?-1:2;var s={};this.queue.forEach(function(l){(function(c,f,p,d){var v=TE(c,f,Object),m=v.obj,g=v.k;m[g]=m[g]||[],m[g].push(p)})(l.loaded,[a],u),(function(c,f){for(var p=c.indexOf(f);p!==-1;)c.splice(p,1),p=c.indexOf(f)})(l.pending,r),n&&l.errors.push(n),l.pending.length!==0||l.done||(Object.keys(l.loaded).forEach(function(c){s[c]||(s[c]=[]),l.loaded[c].length&&l.loaded[c].forEach(function(f){s[c].indexOf(f)<0&&s[c].push(f)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(function(l){return!l.done})}},{key:"read",value:function(r,n,o){var i=this,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:350,s=arguments.length>5?arguments[5]:void 0;return r.length?this.backend[o](r,n,function(l,c){l&&c&&a<5?setTimeout(function(){i.read.call(i,r,n,o,a+1,2*u,s)},u):s(l,c)}):s(null,{})}},{key:"prepareLoading",value:function(r,n){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof n=="string"&&(n=[n]);var u=this.queueLoad(r,n,i,a);if(!u.toLoad.length)return u.pending.length||a(),null;u.toLoad.forEach(function(s){o.loadOne(s)})}},{key:"load",value:function(r,n,o){this.prepareLoading(r,n,{},o)}},{key:"reload",value:function(r,n,o){this.prepareLoading(r,n,{reload:!0},o)}},{key:"loadOne",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=r.split("|"),a=i[0],u=i[1];this.read(a,u,"read",void 0,void 0,function(s,l){s&&n.logger.warn("".concat(o,"loading namespace ").concat(u," for language ").concat(a," failed"),s),!s&&l&&n.logger.log("".concat(o,"loaded namespace ").concat(u," for language ").concat(a),l),n.loaded(r,s,l)})}},{key:"saveMissing",value:function(r,n,o,i,a){var u=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)?this.logger.warn('did not save key "'.concat(o,'" as the namespace "').concat(n,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):o!=null&&o!==""&&(this.backend&&this.backend.create&&this.backend.create(r,n,o,i,null,Gt({},u,{isUpdate:a})),r&&r[0]&&this.store.addResource(r[0],n,o,i))}}]),t})();function pte(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if(Mi(e[1])==="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),Mi(e[2])==="object"||Mi(e[3])==="object"){var r=e[3]||e[2];Object.keys(r).forEach(function(n){t[n]=r[n]})}return t},interpolation:{escapeValue:!0,format:function(e,t,r,n){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function WB(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function k0(){}var hte=(function(e){function t(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Xo(this,t),r=Yf(this,fl(t).call(this)),A0&&zi.call(Cu(r)),r.options=WB(n),r.services={},r.logger=Zo,r.modules={external:[]},o&&!r.isInitialized&&!n.isClone){if(!r.options.initImmediate)return r.init(n,o),Yf(r,Cu(r));setTimeout(function(){r.init(n,o)},0)}return r}return D0(t,zi),$o(t,[{key:"init",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;function i(d){return d?typeof d=="function"?new d:d:null}if(typeof n=="function"&&(o=n,n={}),n.whitelist&&!n.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),n.nonExplicitWhitelist&&!n.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=Gt({},pte(),this.options,WB(n)),this.format=this.options.interpolation.format,o||(o=k0),!this.options.isClone){this.modules.logger?Zo.init(i(this.modules.logger),this.options):Zo.init(null,this.options);var a=new ate(this.options);this.store=new ite(this.options.resources,this.options);var u=this.services;u.logger=Zo,u.resourceStore=this.store,u.languageUtils=a,u.pluralResolver=new cte(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new fte(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new dte(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(d){for(var v=arguments.length,m=new Array(v>1?v-1:0),g=1;g<v;g++)m[g-1]=arguments[g];r.emit.apply(r,[d].concat(m))}),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new qB(this.services,this.options),this.translator.on("*",function(d){for(var v=arguments.length,m=new Array(v>1?v-1:0),g=1;g<v;g++)m[g-1]=arguments[g];r.emit.apply(r,[d].concat(m))}),this.modules.external.forEach(function(d){d.init&&d.init(r)})}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&s[0]!=="dev"&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach(function(d){r[d]=function(){var v;return(v=r.store)[d].apply(v,arguments)}});var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach(function(d){r[d]=function(){var v;return(v=r.store)[d].apply(v,arguments),r}});var f=Xf(),p=function(){var d=function(v,m){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),f.resolve(m),o(v,m)};if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return d(null,r.t.bind(r));r.changeLanguage(r.options.lng,d)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),f}},{key:"loadResources",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k0,i=o,a=typeof r=="string"?r:this.language;if(typeof r=="function"&&(i=r),!this.options.resources||this.options.partialBundledLanguages){if(a&&a.toLowerCase()==="cimode")return i();var u=[],s=function(c){c&&n.services.languageUtils.toResolveHierarchy(c).forEach(function(f){u.indexOf(f)<0&&u.push(f)})};if(a)s(a);else{var l=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);l.forEach(function(c){return s(c)})}this.options.preload&&this.options.preload.forEach(function(c){return s(c)}),this.services.backendConnector.load(u,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(r,n,o){var i=Xf();return r||(r=this.languages),n||(n=this.options.ns),o||(o=k0),this.services.backendConnector.reload(r,n,function(a){i.resolve(),o(a)}),i}},{key:"use",value:function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&HB.addPostProcessor(r),r.type==="3rdParty"&&this.modules.external.push(r),this}},{key:"changeLanguage",value:function(r,n){var o=this;this.isLanguageChangingTo=r;var i=Xf();this.emit("languageChanging",r);var a=function(u){r||u||!o.services.languageDetector||(u=[]);var s=typeof u=="string"?u:o.services.languageUtils.getBestMatchFromCodes(u);s&&(o.language||(o.language=s,o.languages=o.services.languageUtils.toResolveHierarchy(s)),o.translator.language||o.translator.changeLanguage(s),o.services.languageDetector&&o.services.languageDetector.cacheUserLanguage(s)),o.loadResources(s,function(l){(function(c,f){f?(o.language=f,o.languages=o.services.languageUtils.toResolveHierarchy(f),o.translator.changeLanguage(f),o.isLanguageChangingTo=void 0,o.emit("languageChanged",f),o.logger.log("languageChanged",f)):o.isLanguageChangingTo=void 0,i.resolve(function(){return o.t.apply(o,arguments)}),n&&n(c,function(){return o.t.apply(o,arguments)})})(l,s)})};return r||!this.services.languageDetector||this.services.languageDetector.async?!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(a):a(r):a(this.services.languageDetector.detect()),i}},{key:"getFixedT",value:function(r,n,o){var i=this,a=function u(s,l){var c;if(Mi(l)!=="object"){for(var f=arguments.length,p=new Array(f>2?f-2:0),d=2;d<f;d++)p[d-2]=arguments[d];c=i.options.overloadTranslationOptionHandler([s,l].concat(p))}else c=Gt({},l);c.lng=c.lng||u.lng,c.lngs=c.lngs||u.lngs,c.ns=c.ns||u.ns;var v=i.options.keySeparator||".",m=o?"".concat(o).concat(v).concat(s):s;return i.t(m,c)};return typeof r=="string"?a.lng=r:a.lngs=r,a.ns=n,a.keyPrefix=o,a}},{key:"t",value:function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)}},{key:"exists",value:function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)}},{key:"setDefaultNamespace",value:function(r){this.options.defaultNS=r}},{key:"hasLoadedNamespace",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],a=!!this.options&&this.options.fallbackLng,u=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;var s=function(c,f){var p=n.services.backendConnector.state["".concat(c,"|").concat(f)];return p===-1||p===2};if(o.precheck){var l=o.precheck(this,s);if(l!==void 0)return l}return!!this.hasResourceBundle(i,r)||!this.services.backendConnector.backend||!(!s(i,r)||a&&!s(u,r))}},{key:"loadNamespaces",value:function(r,n){var o=this,i=Xf();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(a){o.options.ns.indexOf(a)<0&&o.options.ns.push(a)}),this.loadResources(function(a){i.resolve(),n&&n(a)}),i):(n&&n(),Promise.resolve())}},{key:"loadLanguages",value:function(r,n){var o=Xf();typeof r=="string"&&(r=[r]);var i=this.options.preload||[],a=r.filter(function(u){return i.indexOf(u)<0});return a.length?(this.options.preload=i.concat(a),this.loadResources(function(u){o.resolve(),n&&n(u)}),o):(n&&n(),Promise.resolve())}},{key:"dir",value:function(r){return r||(r=this.languages&&this.languages.length>0?this.languages[0]:this.language),r?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(r))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(r,n)}},{key:"cloneInstance",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:k0,i=Gt({},this.options,n,{isClone:!0}),a=new t(i),u=["store","services","language"];return u.forEach(function(s){a[s]=r[s]}),a.services=Gt({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new qB(a.services,a.options),a.translator.on("*",function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),f=1;f<l;f++)c[f-1]=arguments[f];a.emit.apply(a,[s].concat(c))}),a.init(i,o),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t})(),O0=new hte;function Vr(e,t){O0.addResourceBundle(e,"translation",t,!0,!0)}O0.init({lng:"zh-CN",resources:{}});var ie=O0.t.bind(O0);Vr("en",{editor:{more:"More",justify:"Justify",indent:"Indent",image:"Image",video:"Video"}}),Vr("zh-CN",{editor:{more:"更多",justify:"对齐",indent:"缩进",image:"图片",video:"视频"}});var gte=F1?{}.toString:function(){return"[object "+qh(this)+"]"};F1||Wa(Object.prototype,"toString",gte,{unsafe:!0});var GB=Array.isArray||function(e){return Va(e)=="Array"},KB=function(){},vte=[],YB=Bc("Reflect","construct"),jE=/^\s*(?:class|function)\b/,mte=nt(jE.exec),yte=!jE.exec(KB),$f=function(e){if(!$t(e))return!1;try{return YB(KB,vte,e),!0}catch{return!1}},bte=!YB||rr(function(){var e;return $f($f.call)||!$f(Object)||!$f(function(){e=!0})||e})?function(e){if(!$t(e))return!1;switch(qh(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return yte||!!mte(jE,x1(e))}:$f,wte=Fr("species"),XB=Se.Array,Ete=function(e,t){return new((function(r){var n;return GB(r)&&(n=r.constructor,(bte(n)&&(n===XB||GB(n.prototype))||oo(n)&&(n=n[wte])===null)&&(n=void 0)),n===void 0?XB:n})(e))(t===0?0:t)},$B=nt([].push),Cte=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,v=y1(s),m=$S(v),g=F8(l,c),y=Vh(m),h=0,b=f||Ete,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(d=g(p=m[h],h,v),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:$B(w,p)}else switch(e){case 4:return!1;case 7:$B(w,p)}return i?-1:n||o?o:w}},xte={forEach:Cte(0)}.forEach,Dte=(function(e,t){var r=[][e];return!!r&&rr(function(){r.call(null,t||function(){throw 1},1)})})("forEach"),NE=Dte?[].forEach:function(e){return xte(this,e,arguments.length>1?arguments[1]:void 0)},ZB=function(e){if(e&&e.forEach!==NE)try{Lr(e,"forEach",NE)}catch{e.forEach=NE}};for(var RE in $h)$h[RE]&&ZB(Se[RE]&&Se[RE].prototype);ZB(H8),Vr("en",{common:{ok:"OK",delete:"Delete",enter:"Enter"},blockQuote:{title:"Quote"},codeBlock:{title:"Code block"},color:{color:"Font color",bgColor:"Back color",default:"Default color",clear:"Clear back color"},divider:{title:"Divider"},emotion:{title:"Emotion"},fontSize:{title:"Font size",default:"Default"},fontFamily:{title:"Font family",default:"Default"},fullScreen:{title:"Full screen"},header:{title:"Header",text:"Text"},image:{netImage:"Net image",delete:"Delete image",edit:"Edit image",viewLink:"View link",src:"Image src",desc:"Description",link:"Image link"},indent:{decrease:"Decrease",increase:"Increase"},justify:{left:"Left",right:"Right",center:"Center",justify:"Justify"},lineHeight:{title:"Line height",default:"Default"},link:{insert:"Insert link",text:"Link text",url:"Link source",unLink:"Unlink",edit:"Edit link",view:"View link"},textStyle:{bold:"Bold",clear:"Clear styles",code:"Inline code",italic:"Italic",sub:"Sub",sup:"Sup",through:"Through",underline:"Underline"},undo:{undo:"undo",redo:"Redo"},todo:{todo:"Todo"}}),Vr("zh-CN",{common:{ok:"确定",delete:"删除",enter:"回车"},blockQuote:{title:"引用"},codeBlock:{title:"代码块"},color:{color:"文字颜色",bgColor:"背景色",default:"默认颜色",clear:"清除背景色"},divider:{title:"分割线"},emotion:{title:"表情"},fontSize:{title:"字号",default:"默认字号"},fontFamily:{title:"字体",default:"默认字体"},fullScreen:{title:"全屏"},header:{title:"标题",text:"正文"},image:{netImage:"网络图片",delete:"删除图片",edit:"编辑图片",viewLink:"查看链接",src:"图片地址",desc:"图片描述",link:"图片链接"},indent:{decrease:"减少缩进",increase:"增加缩进"},justify:{left:"左对齐",right:"右对齐",center:"居中对齐",justify:"两端对齐"},lineHeight:{title:"行高",default:"默认行高"},link:{insert:"插入链接",text:"链接文本",url:"链接地址",unLink:"取消链接",edit:"修改链接",view:"查看链接"},textStyle:{bold:"粗体",clear:"清除格式",code:"行内代码",italic:"斜体",sub:"下标",sup:"上标",through:"删除线",underline:"下划线"},undo:{undo:"撤销",redo:"重做"},todo:{todo:"待办"}});var Ste={type:"paragraph",renderElem:function(e,t,r){return Ee("p",null,t)}},B0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function F0(e){var t={exports:{}};return e(t,t.exports),t.exports}var Vi,_0,T0=function(e){return e&&e.Math==Math&&e},Oe=T0(typeof globalThis=="object"&&globalThis)||T0(typeof window=="object"&&window)||T0(typeof self=="object"&&self)||T0(typeof B0=="object"&&B0)||(function(){return this})()||Function("return this")(),Dt=function(e){try{return!!e()}catch{return!0}},Un=!Dt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Zf=Function.prototype.call,Rt=Zf.bind?Zf.bind(Zf):function(){return Zf.apply(Zf,arguments)},JB={}.propertyIsEnumerable,QB=Object.getOwnPropertyDescriptor,Ate=QB&&!JB.call({1:2},1)?function(e){var t=QB(this,e);return!!t&&t.enumerable}:JB,eF={f:Ate},IE=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tF=Function.prototype,LE=tF.bind,ME=tF.call,kte=LE&&LE.bind(ME),we=LE?function(e){return e&&kte(ME,e)}:function(e){return e&&function(){return ME.apply(e,arguments)}},Ote=we({}.toString),Bte=we("".slice),Hi=function(e){return Bte(Ote(e),8,-1)},zE=Oe.Object,Fte=we("".split),P0=Dt(function(){return!zE("z").propertyIsEnumerable(0)})?function(e){return Hi(e)=="String"?Fte(e,""):zE(e)}:zE,_te=Oe.TypeError,xn=function(e){if(e==null)throw _te("Can't call method on "+e);return e},pl=function(e){return P0(xn(e))},wr=function(e){return typeof e=="function"},vo=function(e){return typeof e=="object"?e!==null:wr(e)},Tte=function(e){return wr(e)?e:void 0},Jf=function(e,t){return arguments.length<2?Tte(Oe[e]):Oe[e]&&Oe[e][t]},rF=we({}.isPrototypeOf),VE=Jf("navigator","userAgent")||"",nF=Oe.process,oF=Oe.Deno,iF=nF&&nF.versions||oF&&oF.version,aF=iF&&iF.v8;aF&&(_0=(Vi=aF.split("."))[0]>0&&Vi[0]<4?1:+(Vi[0]+Vi[1])),!_0&&VE&&(!(Vi=VE.match(/Edge\/(\d+)/))||Vi[1]>=74)&&(Vi=VE.match(/Chrome\/(\d+)/))&&(_0=+Vi[1]);var HE=_0,UE=!!Object.getOwnPropertySymbols&&!Dt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&HE&&HE<41}),qE=UE&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Pte=Oe.Object,WE=qE?function(e){return typeof e=="symbol"}:function(e){var t=Jf("Symbol");return wr(t)&&rF(t.prototype,Pte(e))},jte=Oe.String,uF=function(e){try{return jte(e)}catch{return"Object"}},Nte=Oe.TypeError,sF=function(e){if(wr(e))return e;throw Nte(uF(e)+" is not a function")},j0=function(e,t){var r=e[t];return r==null?void 0:sF(r)},Rte=Oe.TypeError,Ite=Object.defineProperty,GE=function(e,t){try{Ite(Oe,e,{value:t,configurable:!0,writable:!0})}catch{Oe[e]=t}return t},Ui=Oe["__core-js_shared__"]||GE("__core-js_shared__",{}),KE=F0(function(e){(e.exports=function(t,r){return Ui[t]||(Ui[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Lte=Oe.Object,Qf=function(e){return Lte(xn(e))},Mte=we({}.hasOwnProperty),Dn=Object.hasOwn||function(e,t){return Mte(Qf(e),t)},zte=0,Vte=Math.random(),Hte=we(1 .toString),lF=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Hte(++zte+Vte,36)},ed=KE("wks"),xu=Oe.Symbol,cF=xu&&xu.for,Ute=qE?xu:xu&&xu.withoutSetter||lF,on=function(e){if(!Dn(ed,e)||!UE&&typeof ed[e]!="string"){var t="Symbol."+e;UE&&Dn(xu,e)?ed[e]=xu[e]:ed[e]=qE&&cF?cF(t):Ute(t)}return ed[e]},qte=Oe.TypeError,Wte=on("toPrimitive"),YE=function(e){var t=(function(r,n){if(!vo(r)||WE(r))return r;var o,i=j0(r,Wte);if(i){if(o=Rt(i,r,n),!vo(o)||WE(o))return o;throw qte("Can't convert object to primitive value")}return(function(a,u){var s,l;if(wr(s=a.toString)&&!vo(l=Rt(s,a))||wr(s=a.valueOf)&&!vo(l=Rt(s,a)))return l;throw Rte("Can't convert object to primitive value")})(r)})(e,"string");return WE(t)?t:t+""},XE=Oe.document,Gte=vo(XE)&&vo(XE.createElement),$E=function(e){return Gte?XE.createElement(e):{}},fF=!Un&&!Dt(function(){return Object.defineProperty($E("div"),"a",{get:function(){return 7}}).a!=7}),dF=Object.getOwnPropertyDescriptor,ZE={f:Un?dF:function(e,t){if(e=pl(e),t=YE(t),fF)try{return dF(e,t)}catch{}if(Dn(e,t))return IE(!Rt(eF.f,e,t),e[t])}},Kte=Oe.String,Yte=Oe.TypeError,an=function(e){if(vo(e))return e;throw Yte(Kte(e)+" is not an object")},Xte=Oe.TypeError,pF=Object.defineProperty,hl={f:Un?pF:function(e,t,r){if(an(e),t=YE(t),an(r),fF)try{return pF(e,t,r)}catch{}if("get"in r||"set"in r)throw Xte("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},gl=Un?function(e,t,r){return hl.f(e,t,IE(1,r))}:function(e,t,r){return e[t]=r,e},$te=we(Function.toString);wr(Ui.inspectSource)||(Ui.inspectSource=function(e){return $te(e)});var JE,N0,QE,e4=Ui.inspectSource,hF=Oe.WeakMap,Zte=wr(hF)&&/native code/.test(e4(hF)),gF=KE("keys"),vF=function(e){return gF[e]||(gF[e]=lF(e))},t4={},mF=Oe.TypeError,Jte=Oe.WeakMap;if(Zte||Ui.state){var Du=Ui.state||(Ui.state=new Jte),Qte=we(Du.get),yF=we(Du.has),ere=we(Du.set);JE=function(e,t){if(yF(Du,e))throw new mF("Object already initialized");return t.facade=e,ere(Du,e,t),t},N0=function(e){return Qte(Du,e)||{}},QE=function(e){return yF(Du,e)}}else{var vl=vF("state");t4[vl]=!0,JE=function(e,t){if(Dn(e,vl))throw new mF("Object already initialized");return t.facade=e,gl(e,vl,t),t},N0=function(e){return Dn(e,vl)?e[vl]:{}},QE=function(e){return Dn(e,vl)}}var r4={get:N0,enforce:function(e){return QE(e)?N0(e):JE(e,{})}},bF=Function.prototype,tre=Un&&Object.getOwnPropertyDescriptor,n4=Dn(bF,"name"),R0={EXISTS:n4,PROPER:n4&&(function(){}).name==="something",CONFIGURABLE:n4&&(!Un||Un&&tre(bF,"name").configurable)},td=F0(function(e){var t=R0.CONFIGURABLE,r=r4.get,n=r4.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;wr(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Dn(u,"name")||t&&u.name!==d)&&gl(u,"name",d),(l=n(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Oe?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:gl(i,a,u)):f?i[a]=u:GE(a,u)})(Function.prototype,"toString",function(){return wr(this)&&r(this).source||e4(this)})}),rre=Math.ceil,nre=Math.floor,ml=function(e){var t=+e;return t!=t||t===0?0:(t>0?nre:rre)(t)},ore=Math.max,ire=Math.min,rd=function(e,t){var r=ml(e);return r<0?ore(r+t,0):ire(r,t)},are=Math.min,nd=function(e){return e>0?are(ml(e),9007199254740991):0},I0=function(e){return nd(e.length)},wF=function(e){return function(t,r,n){var o,i=pl(t),a=I0(i),u=rd(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},EF={includes:wF(!0),indexOf:wF(!1)},ure=EF.indexOf,CF=we([].push),xF=function(e,t){var r,n=pl(e),o=0,i=[];for(r in n)!Dn(t4,r)&&Dn(n,r)&&CF(i,r);for(;t.length>o;)Dn(n,r=t[o++])&&(~ure(i,r)||CF(i,r));return i},L0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],sre=L0.concat("length","prototype"),lre={f:Object.getOwnPropertyNames||function(e){return xF(e,sre)}},DF={f:Object.getOwnPropertySymbols},cre=we([].concat),fre=Jf("Reflect","ownKeys")||function(e){var t=lre.f(an(e)),r=DF.f;return r?cre(t,r(e)):t},dre=function(e,t){for(var r=fre(t),n=hl.f,o=ZE.f,i=0;i<r.length;i++){var a=r[i];Dn(e,a)||n(e,a,o(t,a))}},pre=/#|\.prototype\./,od=function(e,t){var r=gre[hre(e)];return r==mre||r!=vre&&(wr(t)?Dt(t):!!t)},hre=od.normalize=function(e){return String(e).replace(pre,".").toLowerCase()},gre=od.data={},vre=od.NATIVE="N",mre=od.POLYFILL="P",yre=od,bre=ZE.f,Jt=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?Oe:l?Oe[u]||GE(u,{}):(Oe[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=bre(r,n))&&a.value:r[n],!yre(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;dre(i,o)}(e.sham||o&&o.sham)&&gl(i,"sham",!0),td(r,n,i,e)}},SF=we(we.bind),M0=Array.isArray||function(e){return Hi(e)=="Array"},AF={};AF[on("toStringTag")]="z";var o4=String(AF)==="[object z]",wre=on("toStringTag"),Ere=Oe.Object,Cre=Hi((function(){return arguments})())=="Arguments",i4=o4?Hi:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=Ere(e),wre))=="string"?r:Cre?Hi(t):(n=Hi(t))=="Object"&&wr(t.callee)?"Arguments":n},kF=function(){},xre=[],OF=Jf("Reflect","construct"),a4=/^\s*(?:class|function)\b/,Dre=we(a4.exec),Sre=!a4.exec(kF),id=function(e){if(!wr(e))return!1;try{return OF(kF,xre,e),!0}catch{return!1}},u4=!OF||Dt(function(){var e;return id(id.call)||!id(Object)||!id(function(){e=!0})||e})?function(e){if(!wr(e))return!1;switch(i4(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Sre||!!Dre(a4,e4(e))}:id,Are=on("species"),BF=Oe.Array,kre=function(e,t){return new((function(r){var n;return M0(r)&&(n=r.constructor,(u4(n)&&(n===BF||M0(n.prototype))||vo(n)&&(n=n[Are])===null)&&(n=void 0)),n===void 0?BF:n})(e))(t===0?0:t)},FF=we([].push),z0=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,v=Qf(s),m=P0(v),g=(function(x,A){return sF(x),A===void 0?x:SF?SF(x,A):function(){return x.apply(A,arguments)}})(l,c),y=I0(m),h=0,b=f||kre,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(d=g(p=m[h],h,v),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:FF(w,p)}else switch(e){case 4:return!1;case 7:FF(w,p)}return i?-1:n||o?o:w}},V0={forEach:z0(0),map:z0(1),filter:z0(2),find:z0(5)},Ore=on("species"),s4=function(e){return HE>=51||!Dt(function(){var t=[];return(t.constructor={})[Ore]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Bre=V0.filter;Jt({target:"Array",proto:!0,forced:!s4("filter")},{filter:function(e){return Bre(this,e,arguments.length>1?arguments[1]:void 0)}});var Fre=o4?{}.toString:function(){return"[object "+i4(this)+"]"};o4||td(Object.prototype,"toString",Fre,{unsafe:!0});var H0,_re=Oe.String,St=function(e){if(i4(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return _re(e)},_F=function(){var e=an(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},l4=Oe.RegExp,c4=Dt(function(){var e=l4("a","y");return e.lastIndex=2,e.exec("abcd")!=null});c4||Dt(function(){return!l4("a","y").sticky});var TF={BROKEN_CARET:c4||Dt(function(){var e=l4("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:c4},yl=Object.keys||function(e){return xF(e,L0)},Tre=Un?Object.defineProperties:function(e,t){an(e);for(var r,n=pl(t),o=yl(t),i=o.length,a=0;i>a;)hl.f(e,r=o[a++],n[r]);return e},Pre=Jf("document","documentElement"),PF=vF("IE_PROTO"),f4=function(){},jF=function(e){return"<script>"+e+"<\/script>"},NF=function(e){e.write(jF("")),e.close();var t=e.parentWindow.Object;return e=null,t},U0=function(){try{H0=new ActiveXObject("htmlfile")}catch{}var e,t;U0=typeof document<"u"?document.domain&&H0?NF(H0):((t=$E("iframe")).style.display="none",Pre.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(jF("document.F=Object")),e.close(),e.F):NF(H0);for(var r=L0.length;r--;)delete U0.prototype[L0[r]];return U0()};t4[PF]=!0;var RF,d4,IF=Object.create||function(e,t){var r;return e!==null?(f4.prototype=an(e),r=new f4,f4.prototype=null,r[PF]=e):r=U0(),t===void 0?r:Tre(r,t)},jre=Oe.RegExp,Nre=Dt(function(){var e=jre(".","s");return!(e.dotAll&&e.exec(`
48
+ `)&&e.flags==="s")}),Rre=Oe.RegExp,Ire=Dt(function(){var e=Rre("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Lre=r4.get,Mre=KE("native-string-replace",String.prototype.replace),q0=RegExp.prototype.exec,p4=q0,zre=we("".charAt),Vre=we("".indexOf),Hre=we("".replace),h4=we("".slice),g4=(d4=/b*/g,Rt(q0,RF=/a/,"a"),Rt(q0,d4,"a"),RF.lastIndex!==0||d4.lastIndex!==0),LF=TF.BROKEN_CARET,v4=/()??/.exec("")[1]!==void 0;(g4||v4||LF||Nre||Ire)&&(p4=function(e){var t,r,n,o,i,a,u,s=this,l=Lre(s),c=St(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=Rt(p4,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=LF&&s.sticky,v=Rt(_F,s),m=s.source,g=0,y=c;if(d&&(v=Hre(v,"y",""),Vre(v,"g")===-1&&(v+="g"),y=h4(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&zre(c,s.lastIndex-1)!==`
49
+ `)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),v4&&(r=new RegExp("^"+m+"$(?!\\s)",v)),g4&&(n=s.lastIndex),o=Rt(q0,d?r:s,y),d?o?(o.input=h4(o.input,g),o[0]=h4(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:g4&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),v4&&o&&o.length>1&&Rt(Mre,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=IF(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var ad=p4;Jt({target:"RegExp",proto:!0,forced:/./.exec!==ad},{exec:ad});var m4=Function.prototype,MF=m4.apply,Ure=m4.bind,zF=m4.call,VF=typeof Reflect=="object"&&Reflect.apply||(Ure?zF.bind(MF):function(){return zF.apply(MF,arguments)}),qre=on("species"),y4=RegExp.prototype,b4=function(e,t,r,n){var o=on(e),i=!Dt(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Dt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[qre]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=we(/./[o]),s=t(o,""[e],function(l,c,f,p,d){var v=we(l),m=c.exec;return m===ad||m===y4.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:v(f,c,p)}:{done:!1}});td(String.prototype,e,s[0]),td(y4,o,s[1])}n&&gl(y4[o],"sham",!0)},Wre=we("".charAt),HF=we("".charCodeAt),Gre=we("".slice),Kre=function(e){return function(t,r){var n,o,i=St(xn(t)),a=ml(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=HF(i,a))<55296||n>56319||a+1===u||(o=HF(i,a+1))<56320||o>57343?e?Wre(i,a):n:e?Gre(i,a,a+2):o-56320+(n-55296<<10)+65536}},Yre=Kre(!0),w4=function(e,t,r){return t+(r?Yre(e,t).length:1)},Xre=Math.floor,E4=we("".charAt),$re=we("".replace),C4=we("".slice),Zre=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Jre=/\$([$&'`]|\d{1,2})/g,Qre=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,s=Jre;return o!==void 0&&(o=Qf(o),s=Zre),$re(i,s,function(l,c){var f;switch(E4(c,0)){case"$":return"$";case"&":return e;case"`":return C4(t,0,r);case"'":return C4(t,a);case"<":f=o[C4(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Xre(p/10);return d===0?l:d<=u?n[d-1]===void 0?E4(c,1):n[d-1]+E4(c,1):l}f=n[p-1]}return f===void 0?"":f})},ene=Oe.TypeError,ud=function(e,t){var r=e.exec;if(wr(r)){var n=Rt(r,e,t);return n!==null&&an(n),n}if(Hi(e)==="RegExp")return Rt(ad,e,t);throw ene("RegExp#exec called on incompatible receiver")},x4=on("replace"),tne=Math.max,rne=Math.min,nne=we([].concat),D4=we([].push),UF=we("".indexOf),qF=we("".slice),one="a".replace(/./,"$0")==="$0",WF=!!/./[x4]&&/./[x4]("a","$0")==="";b4("replace",function(e,t,r){var n=WF?"$":"$0";return[function(o,i){var a=xn(this),u=o==null?void 0:j0(o,x4);return u?Rt(u,o,a,i):Rt(t,St(a),o,i)},function(o,i){var a=an(this),u=St(o);if(typeof i=="string"&&UF(i,n)===-1&&UF(i,"$<")===-1){var s=r(t,a,u,i);if(s.done)return s.value}var l=wr(i);l||(i=St(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=ud(a,u);if(d===null||(D4(p,d),!c))break;St(d[0])===""&&(a.lastIndex=w4(u,nd(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<p.length;y++){for(var h=St((d=p[y])[0]),b=tne(rne(ml(d.index),u.length),0),w=[],x=1;x<d.length;x++)D4(w,(v=d[x])===void 0?v:String(v));var A=d.groups;if(l){var S=nne([h],w,b,u);A!==void 0&&D4(S,A);var B=St(VF(i,void 0,S))}else B=Qre(h,u,b,w,A,i);b>=g&&(m+=qF(u,g,b)+B,g=b+h.length)}return m+qF(u,g)}]},!!Dt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!one||WF);var S4=on("unscopables"),A4=Array.prototype;A4[S4]==null&&hl.f(A4,S4,{configurable:!0,value:IF(null)});var GF=function(e){A4[S4][e]=!0},ine=V0.find,KF=!0;"find"in[]&&Array(1).find(function(){KF=!1}),Jt({target:"Array",proto:!0,forced:KF},{find:function(e){return ine(this,e,arguments.length>1?arguments[1]:void 0)}}),GF("find");var ane=on("match"),YF=function(e){var t;return vo(e)&&((t=e[ane])!==void 0?!!t:Hi(e)=="RegExp")},une=Oe.TypeError,sne=on("species"),XF=function(e,t,r){var n=YE(t);n in e?hl.f(e,n,IE(0,r)):e[n]=r},lne=Oe.Array,cne=Math.max,$F=function(e,t,r){for(var n=I0(e),o=rd(t,n),i=rd(r===void 0?n:r,n),a=lne(cne(i-o,0)),u=0;o<i;o++,u++)XF(a,u,e[o]);return a.length=u,a},bl=TF.UNSUPPORTED_Y,fne=Math.min,ZF=[].push,dne=we(/./.exec),wl=we(ZF),sd=we("".slice);b4("split",function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a=St(xn(this)),u=i===void 0?4294967295:i>>>0;if(u===0)return[];if(o===void 0)return[a];if(!YF(o))return Rt(t,a,o,u);for(var s,l,c,f=[],p=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),d=0,v=new RegExp(o.source,p+"g");(s=Rt(ad,v,a))&&!((l=v.lastIndex)>d&&(wl(f,sd(a,d,s.index)),s.length>1&&s.index<a.length&&VF(ZF,f,$F(s,1)),c=s[0].length,d=l,f.length>=u));)v.lastIndex===s.index&&v.lastIndex++;return d===a.length?!c&&dne(v,"")||wl(f,""):wl(f,sd(a,d)),f.length>u?$F(f,0,u):f}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:Rt(t,this,o,i)}:t,[function(o,i){var a=xn(this),u=o==null?void 0:j0(o,e);return u?Rt(u,o,a,i):Rt(n,St(a),o,i)},function(o,i){var a=an(this),u=St(o),s=r(n,a,u,i,n!==t);if(s.done)return s.value;var l=(function(w,x){var A,S=an(w).constructor;return S===void 0||(A=an(S)[sne])==null?x:(function(B){if(u4(B))return B;throw une(uF(B)+" is not a constructor")})(A)})(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(bl?"g":"y"),p=new l(bl?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return ud(p,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){p.lastIndex=bl?0:m;var y,h=ud(p,bl?sd(u,m):u);if(h===null||(y=fne(nd(p.lastIndex+(bl?m:0)),u.length))===v)m=w4(u,m,c);else{if(wl(g,sd(u,v,m)),g.length===d)return g;for(var b=1;b<=h.length-1;b++)if(wl(g,h[b]),g.length===d)return g;m=v=y}}return wl(g,sd(u,v)),g}]},!!Dt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),bl);var k4=`
50
+ \v\f\r                 \u2028\u2029\uFEFF`,JF=we("".replace),W0="["+k4+"]",pne=RegExp("^"+W0+W0+"*"),hne=RegExp(W0+W0+"*$"),gne=function(e){return function(t){var r=St(xn(t));return 1&e&&(r=JF(r,pne,"")),2&e&&(r=JF(r,hne,"")),r}},vne={trim:gne(3)},mne=R0.PROPER,yne=vne.trim;function O4(e){return T("<div>"+e+"</div>").children().filter(function(t){return t.tagName!=="BR"}).length===0}function El(e){return e.length===0?"":e[0].outerHTML}function Cl(e){return e.length?e[0].tagName.toLowerCase():""}function qn(e,t){for(var r="",n=(e.attr("style")||"").split(";"),o=n.length,i=0;i<o;i++){var a=n[i];if(a){var u=a.split(":");u[0].trim()===t&&(r=u[1].trim())}}return r}Jt({target:"String",proto:!0,forced:Dt(function(){return!!k4.trim()||"​…᠎".trim()!=="​…᠎"||mne&&k4.trim.name!=="trim"})},{trim:function(){return yne(this)}}),Jt({global:!0},{globalThis:Oe}),yg&&(T.fn.css=yg),gn&&(T.fn.append=gn),m7&&(T.fn.prepend=m7),ks&&(T.fn.addClass=ks),Os&&(T.fn.removeClass=Os),Bs&&(T.fn.hasClass=Bs),uo&&(T.fn.on=uo),p7&&(T.fn.off=p7),ki&&(T.fn.focus=ki),hn&&(T.fn.attr=hn),hg&&(T.fn.removeAttr=hg),_s&&(T.fn.hide=_s),mg&&(T.fn.show=mg),Eg&&(T.fn.parents=Eg),Fs&&(T.fn.dataset=Fs),ao&&(T.fn.val=ao),wg&&(T.fn.text=wg),Ai&&(T.fn.html=Ai),js&&(T.fn.children=js),Ns&&(T.fn.remove=Ns),Ps&&(T.fn.find=Ps),gg&&(T.fn.width=gg),vg&&(T.fn.height=vg),g7&&(T.fn.filter=g7),Rs&&(T.fn.empty=Rs);var bne={selector:"p:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=T(e);return(t=t.filter(function(o){return!!le.isText(o)||!!r.isInline(o)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]),{type:"paragraph",children:t}}},B4=function(e,t){return B4=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},B4(e,t);};function mt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}B4(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var qi=function(){return qi=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},qi.apply(this,arguments)};function Wi(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(e,[])).next())})}function Gi(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return(function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([s,l])}}}function QF(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ge(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function e_(e){var t=Ge(D.nodes(e,{match:function(i){return e.children[0]===i},mode:"highest"}),1)[0];if(t==null)return!1;var r=t[0];if(!ge.isElement(r)||r.type==="paragraph"||oe.string(r)!=="")return!1;var n=r.children,o=n===void 0?[]:n;return!!le.isText(o[0])&&(V.setNodes(e,{type:"paragraph"}),!0)}var wne={renderElems:[Ste],elemsToHtml:[{type:"paragraph",elemToHtml:function(e,t){return t===""?"<p><br></p>":"<p>"+t+"</p>"}}],parseElemsHtml:[bne],editorPlugin:function(e){var t=e.deleteBackward,r=e.deleteForward;e.insertText,e.insertBreak;var n=e;return n.deleteBackward=function(o){e_(n)||t(o)},n.deleteForward=function(o){e_(n)||r(o)},n}},Ene=/"/g,Cne=we("".replace),ld=function(e,t,r,n){var o=St(xn(e)),i="<"+t;return r!==""&&(i+=" "+r+'="'+Cne(St(n),Ene,"&quot;")+'"'),i+">"+o+"</"+t+">"},cd=function(e){return Dt(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})};function F4(e,t){var r=t,n=e,o=n.bold,i=n.italic,a=n.underline;return o&&(r="<strong>"+r+"</strong>"),n.code&&(r="<code>"+r+"</code>"),i&&(r="<em>"+r+"</em>"),a&&(r="<u>"+r+"</u>"),n.through&&(r="<s>"+r+"</s>"),n.sub&&(r="<sub>"+r+"</sub>"),n.sup&&(r="<sup>"+r+"</sup>"),r}function Su(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}Jt({target:"String",proto:!0,forced:cd("bold")},{bold:function(){return ld(this,"b","","")}}),Jt({target:"String",proto:!0,forced:cd("italics")},{italics:function(){return ld(this,"i","","")}}),Jt({target:"String",proto:!0,forced:cd("sub")},{sub:function(){return ld(this,"sub","","")}}),Jt({target:"String",proto:!0,forced:cd("sup")},{sup:function(){return ld(this,"sup","","")}});var t_={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},_4=$E("span").classList,r_=_4&&_4.constructor&&_4.constructor.prototype,xne=r_===Object.prototype?void 0:r_,n_=function(e,t){var r=[][e];return!!r&&Dt(function(){r.call(null,t||function(){throw 1},1)})},Dne=V0.forEach,T4=n_("forEach")?[].forEach:function(e){return Dne(this,e,arguments.length>1?arguments[1]:void 0)},o_=function(e){if(e&&e.forEach!==T4)try{gl(e,"forEach",T4)}catch{e.forEach=T4}};for(var P4 in t_)t_[P4]&&o_(Oe[P4]&&Oe[P4].prototype);function i_(e,t){return e.selection==null||!!Ge(D.nodes(e,{match:function(r){return _.getNodeType(r)==="pre"||!!D.isVoid(e,r)},universal:!0}),1)[0]}function Sne(e,t){Object.keys(t).forEach(function(r){r!=="text"&&D.removeMark(e,r)})}o_(xne),Jt({target:"Object",stat:!0,forced:Dt(function(){yl(1)})},{keys:function(e){return yl(Qf(e))}});var Au=(function(){function e(){this.marksNeedToRemove=[],this.tag="button"}return e.prototype.getValue=function(t){var r=this.mark,n=D.marks(t);return n?n[r]:!!Ge(D.nodes(t,{match:function(o){return o[r]===!0}}),1)[0]},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return i_(t,this.mark)},e.prototype.exec=function(t,r){var n=this.mark,o=this.marksNeedToRemove;r?t.removeMark(n):(t.addMark(n,!0),o&&o.forEach(function(i){return t.removeMark(i)}))},e})(),Ane='<svg viewBox="0 0 1024 1024"><path d="M707.872 484.64A254.88 254.88 0 0 0 768 320c0-141.152-114.848-256-256-256H192v896h384c141.152 0 256-114.848 256-256a256.096 256.096 0 0 0-124.128-219.36zM384 192h101.504c55.968 0 101.504 57.408 101.504 128s-45.536 128-101.504 128H384V192z m159.008 640H384v-256h159.008c58.464 0 106.016 57.408 106.016 128s-47.552 128-106.016 128z"></path></svg>',kne='<svg viewBox="0 0 1024 1024"><path d="M704 64l128 0 0 416c0 159.072-143.264 288-320 288s-320-128.928-320-288l0-416 128 0 0 416c0 40.16 18.24 78.688 51.36 108.512 36.896 33.216 86.848 51.488 140.64 51.488s103.744-18.304 140.64-51.488c33.12-29.792 51.36-68.352 51.36-108.512l0-416zM192 832l640 0 0 128-640 0z"></path></svg>',One='<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>',Bne='<svg viewBox="0 0 1024 1024"><path d="M1024 512v64h-234.496c27.52 38.496 42.496 82.688 42.496 128 0 70.88-36.672 139.04-100.576 186.976C672.064 935.488 594.144 960 512 960s-160.064-24.512-219.424-69.024C228.64 843.04 192 774.88 192 704h128c0 69.376 87.936 128 192 128s192-58.624 192-128-87.936-128-192-128H0v-64h299.52a385.984 385.984 0 0 1-6.944-5.024C228.64 459.04 192 390.88 192 320s36.672-139.04 100.576-186.976C351.936 88.512 429.856 64 512 64s160.064 24.512 219.424 69.024C795.328 180.96 832 249.12 832 320h-128c0-69.376-87.936-128-192-128s-192 58.624-192 128 87.936 128 192 128c78.976 0 154.048 22.688 212.48 64H1024z"></path></svg>',Fne='<svg viewBox="0 0 1024 1024"><path d="M576 736l96 96 320-320L672 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224z"></path></svg>',a_='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',u_='<svg viewBox="0 0 1024 1024"><path d="M924.402464 1023.068211H0.679665V99.345412h461.861399v98.909208H99.596867v725.896389h725.896389V561.206811h98.909208z" p-id="10909"></path><path d="M930.805104 22.977336l69.965436 69.965436-453.492405 453.492404-69.965435-69.901489z" p-id="10910"></path><path d="M1022.464381 304.030081h-98.917201V99.345412H709.230573V0.428211h313.233808z"></path></svg>',_ne='<svg viewBox="0 0 1024 1024"><path d="M64 864h896v96H64zM360.58 576h302.85l81.53 224h102.16L579.24 64H444.77L176.89 800h102.16l81.53-224zM512 159.96L628.49 480H395.52L512 159.96z"></path></svg>',Tne='<svg viewBox="0 0 1024 1024"><path d="M510.030769 315.076923l84.676923 196.923077h-177.230769l76.8-196.923077h15.753846zM945.230769 157.538462v708.923076c0 43.323077-35.446154 78.769231-78.769231 78.769231H157.538462c-43.323077 0-78.769231-35.446154-78.769231-78.769231V157.538462c0-43.323077 35.446154-78.769231 78.769231-78.769231h708.923076c43.323077 0 78.769231 35.446154 78.769231 78.769231z m-108.307692 643.938461L600.615385 216.615385c-5.907692-11.815385-15.753846-19.692308-29.538462-19.692308h-139.815385c-11.815385 0-23.630769 7.876923-27.56923 19.692308l-216.615385 584.861538c-3.938462 11.815385 3.938462 25.6 17.723077 25.6h80.738462c11.815385 0 23.630769-9.846154 27.56923-21.661538l63.015385-175.261539h263.876923l68.923077 175.261539c3.938462 11.815385 15.753846 21.661538 27.569231 21.661538h80.738461c13.784615 0 23.630769-13.784615 19.692308-25.6z"></path></svg>',Pne='<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>',jne='<svg viewBox="0 0 1024 1024"><path d="M956.788364 152.110545h-24.110546l23.924364 9.029819 0.186182 121.018181h-65.070546l-86.574545-130.048H566.551273v650.14691l130.048 64.977454v65.163636h-390.050909v-65.163636l129.954909-64.977454V152.110545H198.283636L111.429818 282.065455H46.545455V69.259636C46.545455 33.792 82.664727 22.062545 98.955636 22.062545h812.683637c23.738182 0 45.056 15.173818 45.056 41.053091V169.425455v-17.221819z"></path></svg>',Nne='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>',Rne='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',Ine='<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',Lne='<svg viewBox="0 0 1024 1024"><path d="M972.8 793.6v102.4H256v-102.4h716.8z m0-230.4v102.4H51.2v-102.4h921.6z m0-230.4v102.4H256v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',Mne='<svg viewBox="0 0 1024 1024"><path d="M870.4 793.6v102.4H153.6v-102.4h716.8z m102.4-230.4v102.4H51.2v-102.4h921.6z m-102.4-230.4v102.4H153.6v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',zne='<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>',Vne='<svg viewBox="0 0 1024 1024"><path d="M768 206.016v50.016h128v64h-192V174.016l128-60V64h-128V0h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',Hne='<svg viewBox="0 0 1024 1024"><path d="M768 910.016v50.016h128v64h-192v-146.016l128-60V768h-128v-64h192v146.016zM676 256h-136L352 444 164 256H28l256 256-256 256h136L352 580 540 768h136l-256-256z"></path></svg>',Une=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="bold",r.title=ie("textStyle.bold"),r.iconSvg=Ane,r.hotkey="mod+b",r}return mt(t,e),t})(Au),qne=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="code",r.title=ie("textStyle.code"),r.iconSvg=Fne,r.hotkey="mod+e",r}return mt(t,e),t})(Au),Wne=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="italic",r.title=ie("textStyle.italic"),r.iconSvg=One,r.hotkey="mod+i",r}return mt(t,e),t})(Au),Gne=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="through",r.title=ie("textStyle.through"),r.iconSvg=Bne,r.hotkey="mod+shift+x",r}return mt(t,e),t})(Au),Kne=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="underline",r.title=ie("textStyle.underline"),r.iconSvg=kne,r.hotkey="mod+u",r}return mt(t,e),t})(Au),Yne=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="sub",r.marksNeedToRemove=["sup"],r.title=ie("textStyle.sub"),r.iconSvg=Hne,r.hotkey="",r}return mt(t,e),t})(Au),Xne=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.mark="sup",r.marksNeedToRemove=["sub"],r.title=ie("textStyle.sup"),r.iconSvg=Vne,r.hotkey="",r}return mt(t,e),t})(Au),$ne=(function(){function e(){this.title=ie("textStyle.clear"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M969.382408 288.738615l-319.401123-270.852152a67.074236 67.074236 0 0 0-96.459139 5.74922l-505.931379 574.922021a68.35184 68.35184 0 0 0-17.886463 47.910169 74.101061 74.101061 0 0 0 24.274486 47.910168l156.50655 132.232065h373.060512L975.131628 383.281347a67.074236 67.074236 0 0 0-5.74922-96.459139z m-440.134747 433.746725H264.144729l-90.071117-78.572676c-5.74922-5.74922-12.137243-12.137243-12.137243-17.886463a36.411728 36.411728 0 0 1 5.749221-24.274485l210.804741-240.828447 265.102932 228.691204z m-439.495945 180.781036h843.218964a60.047411 60.047411 0 1 1 0 120.733624H89.751716a60.047411 60.047411 0 1 1 0-120.733624z m0 0"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return i_(t)},e.prototype.exec=function(t,r){var n,o,i=D.nodes(t,{match:function(s){return le.isText(s)},universal:!0});try{for(var a=QF(i),u=a.next();!u.done;u=a.next())Sne(t,u.value[0])}catch(s){n={error:s}}finally{try{u&&!u.done&&(o=a.return)&&o.call(a)}finally{if(n)throw n.error}}},e})(),Zne={renderStyle:function(e,t){var r=e,n=r.bold,o=r.italic,i=r.underline,a=r.code,u=r.through,s=r.sub,l=r.sup,c=t;return n&&(c=Ee("strong",null,c)),a&&(c=Ee("code",null,c)),o&&(c=Ee("em",null,c)),i&&(c=Ee("u",null,c)),u&&(c=Ee("s",null,c)),s&&(c=Ee("sub",null,c)),l&&(c=Ee("sup",null,c)),c},menus:[{key:"bold",factory:function(){return new Une}},{key:"underline",factory:function(){return new Kne}},{key:"italic",factory:function(){return new Wne}},{key:"through",factory:function(){return new Gne}},{key:"code",factory:function(){return new qne}},{key:"sub",factory:function(){return new Yne}},{key:"sup",factory:function(){return new Xne}},{key:"clearStyle",factory:function(){return new $ne}}],styleToHtml:function(e,t){if(!le.isText(e))return t;if(O4(t))return F4(e,t);var r=T(t);if(Cl(r)==="br")return F4(e,"<br>");var n=r.html();return n=F4(e,n),r.html(n),El(r)},parseStyleHtml:function(e,t,r){var n=T(e);if(!le.isText(t))return t;var o=t;return Su(n,"b,strong")&&(o.bold=!0),Su(n,"i,em")&&(o.italic=!0),Su(n,"u")&&(o.underline=!0),Su(n,"s,strike")&&(o.through=!0),Su(n,"sub")&&(o.sub=!0),Su(n,"sup")&&(o.sup=!0),Su(n,"code")&&(o.code=!0),o}};function fd(e){return function(t,r,n){return Ee("h"+e,null,r)}}var Jne={type:"header1",renderElem:fd(1)},Qne={type:"header2",renderElem:fd(2)},eoe={type:"header3",renderElem:fd(3)},toe={type:"header4",renderElem:fd(4)},roe={type:"header5",renderElem:fd(5)},noe=R0.PROPER,j4=RegExp.prototype,s_=j4.toString,ooe=we(_F),ioe=Dt(function(){return s_.call({source:"a",flags:"b"})!="/a/b"}),aoe=noe&&s_.name!="toString";(ioe||aoe)&&td(RegExp.prototype,"toString",function(){var e=an(this),t=St(e.source),r=e.flags;return"/"+t+"/"+St(r===void 0&&rF(j4,e)&&!("flags"in j4)?ooe(e):r)},{unsafe:!0});var N4,uoe=Oe.TypeError,l_=function(e){if(YF(e))throw uoe("The method doesn't accept regular expressions");return e},soe=on("match"),c_=function(e){var t=/./;try{"/./"[e](t)}catch{try{return t[soe]=!1,"/./"[e](t)}catch{}}return!1},loe=ZE.f,f_=we("".startsWith),coe=we("".slice),foe=Math.min,d_=c_("startsWith");function p_(e){var t=Ge(D.nodes(e,{match:function(o){return _.getNodeType(o).startsWith("header")},universal:!0}),1),r=t[0];if(r==null)return"paragraph";var n=Ge(r,1)[0];return _.getNodeType(n)}function h_(e){return e.selection==null||!Ge(D.nodes(e,{match:function(t){var r=_.getNodeType(t);return r==="paragraph"||!!r.startsWith("header")},universal:!0,mode:"highest"}),1)[0]}function g_(e,t){t&&V.setNodes(e,{type:t})}Jt({target:"String",proto:!0,forced:!(!d_&&(N4=loe(String.prototype,"startsWith"),N4&&!N4.writable)||d_)},{startsWith:function(e){var t=St(xn(this));l_(e);var r=nd(foe(arguments.length>1?arguments[1]:void 0,t.length)),n=St(e);return f_?f_(t,n,r):coe(t,r,r+n.length)===n}});var doe=(function(){function e(){this.title=ie("header.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M960 960c-51.2 0-102.4-3.2-153.6-3.2-51.2 0-99.2 3.2-150.4 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 57.6-28.8 86.4-48 19.2-12.8 19.2-60.8 19.2-80v-224-19.2c-9.6-3.2-19.2-3.2-28.8-3.2H320c-9.6 0-19.2 0-28.8 3.2V780.8c0 22.4 0 80 22.4 92.8 28.8 19.2 96-6.4 96 44.8 0 16-9.6 41.6-28.8 41.6-54.4 0-105.6-3.2-160-3.2-48 0-96 3.2-147.2 3.2-19.2 0-28.8-22.4-28.8-38.4 0-51.2 51.2-28.8 80-48 19.2-12.8 19.2-60.8 19.2-83.2V294.4c0-28.8 3.2-115.2-22.4-131.2-25.6-16-86.4 9.6-86.4-41.6 0-16 6.4-41.6 28.8-41.6 51.2 0 105.6 3.2 156.8 3.2 48 0 96-3.2 144-3.2 19.2 0 28.8 22.4 28.8 41.6 0 48-57.6 25.6-83.2 41.6-19.2 12.8-19.2 73.6-19.2 92.8v201.6c6.4 3.2 16 3.2 22.4 3.2h400c6.4 0 12.8 0 22.4-3.2V256c0-22.4 0-80-19.2-92.8-28.8-16-86.4 6.4-86.4-41.6 0-16 9.6-41.6 28.8-41.6 51.2 0 99.2 3.2 150.4 3.2 48 0 99.2-3.2 147.2-3.2 19.2 0 28.8 22.4 28.8 41.6 0 51.2-57.6 25.6-86.4 41.6-19.2 12.8-19.2 70.4-19.2 92.8v537.6c0 19.2 0 67.2 19.2 80 28.8 19.2 89.6-6.4 89.6 44.8 0 19.2-6.4 41.6-28.8 41.6z"></path></svg>',this.tag="select",this.width=60}return e.prototype.getOptions=function(t){var r=[{value:"header1",text:"H1",styleForRenderMenuList:{"font-size":"32px","font-weight":"bold"}},{value:"header2",text:"H2",styleForRenderMenuList:{"font-size":"24px","font-weight":"bold"}},{value:"header3",text:"H3",styleForRenderMenuList:{"font-size":"18px","font-weight":"bold"}},{value:"header4",text:"H4",styleForRenderMenuList:{"font-size":"16px","font-weight":"bold"}},{value:"header5",text:"H5",styleForRenderMenuList:{"font-size":"13px","font-weight":"bold"}},{value:"paragraph",text:ie("header.text")}],n=this.getValue(t).toString();return r.forEach(function(o){o.value===n?o.selected=!0:delete o.selected}),r},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){return p_(t)},e.prototype.isDisabled=function(t){return h_(t)},e.prototype.exec=function(t,r){g_(t,r.toString())},e})(),dd=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return p_(t)},e.prototype.isActive=function(t){return this.getValue(t)===this.type},e.prototype.isDisabled=function(t){return h_(t)},e.prototype.exec=function(t,r){var n=this.type;g_(t,r===n?"paragraph":n)},e})(),poe=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H1",r.type="header1",r}return mt(t,e),t})(dd),hoe=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H2",r.type="header2",r}return mt(t,e),t})(dd),goe=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H3",r.type="header3",r}return mt(t,e),t})(dd),voe=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H4",r.type="header4",r}return mt(t,e),t})(dd),moe=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="H5",r.type="header5",r}return mt(t,e),t})(dd),yoe={key:"headerSelect",factory:function(){return new doe}},boe={key:"header1",factory:function(){return new poe}},woe={key:"header2",factory:function(){return new hoe}},Eoe={key:"header3",factory:function(){return new goe}},Coe={key:"header4",factory:function(){return new voe}},xoe={key:"header5",factory:function(){return new moe}};function pd(e){return function(t,r){return"<h"+e+">"+r+"</h"+e+">"}}function hd(e){return function(t,r,n){var o=T(t);return(r=r.filter(function(i){return!!le.isText(i)||!!n.isInline(i)})).length===0&&(r=[{text:o.text().replace(/\s+/gm," ")}]),{type:"header"+e,children:r}}}var Doe={renderElems:[Jne,Qne,eoe,toe,roe],elemsToHtml:[{type:"header1",elemToHtml:pd(1)},{type:"header2",elemToHtml:pd(2)},{type:"header3",elemToHtml:pd(3)},{type:"header4",elemToHtml:pd(4)},{type:"header5",elemToHtml:pd(5)}],parseElemsHtml:[{selector:"h1:not([data-w-e-type])",parseElemHtml:hd(1)},{selector:"h2:not([data-w-e-type])",parseElemHtml:hd(2)},{selector:"h3:not([data-w-e-type])",parseElemHtml:hd(3)},{selector:"h4:not([data-w-e-type])",parseElemHtml:hd(4)},{selector:"h5:not([data-w-e-type])",parseElemHtml:hd(5)}],menus:[yoe,boe,woe,Eoe,Coe,xoe],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var r=e;return r.insertBreak=function(){var n=Ge(D.nodes(r,{match:function(o){return _.getNodeType(o).startsWith("header")},universal:!0}),1)[0];n&&_.isSelectionAtLineEnd(e,n[1])?V.insertNodes(r,{type:"paragraph",children:[{text:""}]},{mode:"highest"}):t()},r}},xl=Object.assign,v_=Object.defineProperty,Soe=we([].concat),m_=!xl||Dt(function(){if(Un&&xl({b:1},xl(v_({},"a",{enumerable:!0,get:function(){v_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(o){t[o]=o}),xl({},e)[r]!=7||yl(xl({},t)).join("")!=n})?function(e,t){for(var r=Qf(e),n=arguments.length,o=1,i=DF.f,a=eF.f;n>o;)for(var u,s=P0(arguments[o++]),l=i?Soe(yl(s),i(s)):yl(s),c=l.length,f=0;c>f;)u=l[f++],Un&&!Rt(a,s,u)||(r[u]=s[u]);return r}:xl;function ku(e,t){e.data==null&&(e.data={});var r=e.data;r.style==null&&(r.style={}),Object.assign(r.style,t)}Jt({target:"Object",stat:!0,forced:Object.assign!==m_},{assign:m_});var Aoe={selector:"font",preParseHtml:function(e){var t=T(e);if(Cl(t)!=="font")return e;var r=t.attr("color")||"";return r&&(t.removeAttr("color"),t.css("color",r)),t[0]}},y_=(function(){function e(){this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,r){},e.prototype.getValue=function(t){var r=this.mark,n=D.marks(t);return n&&n[r]?n[r]:""},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){return t.selection==null||!!Ge(D.nodes(t,{match:function(r){return _.getNodeType(r)==="pre"||!!D.isVoid(t,r)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){var r=this.mark;if(this.$content==null){var n=T('<ul class="w-e-panel-content-color"></ul>');n.on("click","li",function(l){var c=l.target;if(c!=null&&(l.preventDefault(),t.selection!=null)){var f=T(c).attr("data-value");f==="0"?D.removeMark(t,r):D.addMark(t,r,f)}}),this.$content=n}var o=this.$content;if(o==null)return document.createElement("ul");o.empty();var i=this.getValue(t),a=t.getMenuConfig(r).colors;(a===void 0?[]:a).forEach(function(l){var c=T('<div class="color-block" data-value="'+l+'"></div>');c.css("background-color",l);var f=T('<li data-value="'+l+'"></li>');i===l&&f.addClass("active"),f.append(c),o.append(f)});var u="";r==="color"&&(u=ie("color.default")),r==="bgColor"&&(u=ie("color.clear"));var s=T(`
51
+ <li data-value="0" class="clear">
52
+ <svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
53
+ `+u+`
54
+ </li>
55
+ `);return o.prepend(s),o[0]},e})(),koe=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ie("color.color"),r.iconSvg=_ne,r.mark="color",r}return mt(t,e),t})(y_),Ooe=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ie("color.bgColor"),r.iconSvg=Tne,r.mark="bgColor",r}return mt(t,e),t})(y_),b_=["rgb(0, 0, 0)","rgb(38, 38, 38)","rgb(89, 89, 89)","rgb(140, 140, 140)","rgb(191, 191, 191)","rgb(217, 217, 217)","rgb(233, 233, 233)","rgb(245, 245, 245)","rgb(250, 250, 250)","rgb(255, 255, 255)","rgb(225, 60, 57)","rgb(231, 95, 51)","rgb(235, 144, 58)","rgb(245, 219, 77)","rgb(114, 192, 64)","rgb(89, 191, 192)","rgb(66, 144, 247)","rgb(54, 88, 226)","rgb(106, 57, 201)","rgb(216, 68, 147)","rgb(251, 233, 230)","rgb(252, 237, 225)","rgb(252, 239, 212)","rgb(252, 251, 207)","rgb(231, 246, 213)","rgb(218, 244, 240)","rgb(217, 237, 250)","rgb(224, 232, 250)","rgb(237, 225, 248)","rgb(246, 226, 234)","rgb(255, 163, 158)","rgb(255, 187, 150)","rgb(255, 213, 145)","rgb(255, 251, 143)","rgb(183, 235, 143)","rgb(135, 232, 222)","rgb(145, 213, 255)","rgb(173, 198, 255)","rgb(211, 173, 247)","rgb(255, 173, 210)","rgb(255, 77, 79)","rgb(255, 122, 69)","rgb(255, 169, 64)","rgb(255, 236, 61)","rgb(115, 209, 61)","rgb(54, 207, 201)","rgb(64, 169, 255)","rgb(89, 126, 247)","rgb(146, 84, 222)","rgb(247, 89, 171)","rgb(207, 19, 34)","rgb(212, 56, 13)","rgb(212, 107, 8)","rgb(212, 177, 6)","rgb(56, 158, 13)","rgb(8, 151, 156)","rgb(9, 109, 217)","rgb(29, 57, 196)","rgb(83, 29, 171)","rgb(196, 29, 127)","rgb(130, 0, 20)","rgb(135, 20, 0)","rgb(135, 56, 0)","rgb(97, 71, 0)","rgb(19, 82, 0)","rgb(0, 71, 79)","rgb(0, 58, 140)","rgb(6, 17, 120)","rgb(34, 7, 94)","rgb(120, 6, 80)"],Boe={renderStyle:function(e,t){var r=e,n=r.color,o=r.bgColor,i=t;return n&&ku(i,{color:n}),o&&ku(i,{backgroundColor:o}),i},styleToHtml:function(e,t){if(!le.isText(e))return t;var r,n=e,o=n.color,i=n.bgColor;return o||i?((O4(t)||Cl(r=T(t))!=="span")&&(r=T("<span>"+t+"</span>")),o&&r.css("color",o),i&&r.css("background-color",i),El(r)):t},preParseHtml:[Aoe],parseStyleHtml:function(e,t,r){var n=T(e);if(!le.isText(t))return t;var o=t,i=qn(n,"color");i&&(o.color=i);var a=qn(n,"background-color");return a||(a=qn(n,"background")),a&&(o.bgColor=a),o},menus:[{key:"color",factory:function(){return new koe},config:{colors:b_}},{key:"bgColor",factory:function(){return new Ooe},config:{colors:b_}}]},Foe=/^(?:\w+:)?\/\/(\S+)$/,_oe=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Toe=/^[^\s\.]+\.\S{2,}$/,Poe=EF.includes;function G0(e){return e===void 0&&(e="r"),e+"-"+x7()}function R4(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;")}function w_(e,t,r,n){return Wi(this,void 0,void 0,function(){var o,i;return Gi(this,function(a){switch(a.label){case 0:return(o=t.getMenuConfig(e).checkLink)?[4,o(r,n)]:[3,2];case 1:if(typeof(i=a.sent())=="string")return t.alert(i,"error"),[2,!1];if(i==null)return[2,!1];a.label=2;case 2:return[2,!0]}})})}function E_(e,t,r){return Wi(this,void 0,void 0,function(){var n;return Gi(this,function(o){switch(o.label){case 0:return(n=t.getMenuConfig(e).parseLinkUrl)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function I4(e){return e.selection==null||!!_.getSelectedElems(e).some(function(t){var r=t.type;return!!e.isVoid(t)||!!["pre","code","link"].includes(r)||void 0})}function L4(e,t){return{type:"link",url:R4(e),children:t?[{text:t}]:[]}}function C_(e,t,r){return Wi(this,void 0,void 0,function(){var n,o,i;return Gi(this,function(a){switch(a.label){case 0:return r?(t||(t=r),e.restoreSelection(),I4(e)?[2]:[4,w_("insertLink",e,t,r)]):[2];case 1:return a.sent()?[4,E_("insertLink",e,r)]:[2];case 2:return n=a.sent(),(o=e.selection)==null||(X.isCollapsed(o)?(e.insertText(" "),i=L4(n,t),V.insertNodes(e,i),e.insertFragment([{text:" "}])):D.string(e,o)!==t?(e.deleteFragment(),i=L4(n,t),V.insertNodes(e,i)):(i=L4(n),V.wrapNodes(e,i,{split:!0}),V.collapse(e,{edge:"end"}))),[2]}})})}Jt({target:"Array",proto:!0},{includes:function(e){return Poe(this,e,arguments.length>1?arguments[1]:void 0)}}),GF("includes");var joe={type:"link",renderElem:function(e,t,r){var n=e,o=n.url,i=n.target;return Ee("a",{href:o,target:i===void 0?"_blank":i},t)}},Noe={selector:"a:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=T(e);return(t=t.filter(function(o){return!!le.isText(o)||!!r.isInline(o)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]),{type:"link",url:n.attr("href")||"",target:n.attr("target")||"",children:t}}};function M4(){return G0("w-e-insert-link")}var Roe=(function(){function e(){this.title=ie("link.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M440.224 635.776a51.84 51.84 0 0 1-36.768-15.232c-95.136-95.136-95.136-249.92 0-345.056l192-192C641.536 37.408 702.816 12.032 768 12.032s126.432 25.376 172.544 71.456c95.136 95.136 95.136 249.92 0 345.056l-87.776 87.776a51.968 51.968 0 1 1-73.536-73.536l87.776-87.776a140.16 140.16 0 0 0 0-197.984c-26.432-26.432-61.6-40.992-99.008-40.992s-72.544 14.56-99.008 40.992l-192 192a140.16 140.16 0 0 0 0 197.984 51.968 51.968 0 0 1-36.768 88.768z"></path><path d="M256 1012a242.4 242.4 0 0 1-172.544-71.456c-95.136-95.136-95.136-249.92 0-345.056l87.776-87.776a51.968 51.968 0 1 1 73.536 73.536l-87.776 87.776a140.16 140.16 0 0 0 0 197.984c26.432 26.432 61.6 40.992 99.008 40.992s72.544-14.56 99.008-40.992l192-192a140.16 140.16 0 0 0 0-197.984 51.968 51.968 0 1 1 73.536-73.536c95.136 95.136 95.136 249.92 0 345.056l-192 192A242.4 242.4 0 0 1 256 1012z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textInputId=M4(),this.urlInputId=M4(),this.buttonId=M4()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return I4(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var r=t.selection,n=this,o=n.textInputId,i=n.urlInputId,a=n.buttonId,u=Ge(rn(ie("link.text"),o),2),s=u[0],l=T(u[1]),c=Ge(rn(ie("link.url"),i),2),f=c[0],p=T(c[1]),d=Ge(cl(a,ie("common.ok")),1)[0];if(this.$content==null){var v=T("<div></div>");v.on("click","#"+a,function(y){y.preventDefault();var h=v.find("#"+o).val(),b=v.find("#"+i).val();C_(t,h,b),t.hidePanelOrModal()}),this.$content=v}var m=this.$content;if(m.empty(),m.append(s),m.append(f),m.append(d),r==null||X.isCollapsed(r))l.val("");else{var g=D.string(t,r);l.val(g)}return p.val(""),setTimeout(function(){l.focus()}),m[0]},e})();function x_(){return G0("w-e-update-link")}var Ioe=(function(){function e(){this.title=ie("link.edit"),this.iconSvg=a_,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=x_(),this.buttonId=x_()}return e.prototype.getSelectedLinkElem=function(t){var r=_.getSelectedNodeByType(t,"link");return r??null},e.prototype.getValue=function(t){var r=this.getSelectedLinkElem(t);return r&&r.url||""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.getModalPositionNode=function(t){return _.getSelectedNodeByType(t,"link")},e.prototype.getModalContentElem=function(t){var r=this.urlInputId,n=this.buttonId,o=Ge(rn(ie("link.url"),r),2),i=o[0],a=T(o[1]),u=Ge(cl(n,ie("common.ok")),1)[0];if(this.$content==null){var s=T("<div></div>");s.on("click","button",function(f){f.preventDefault(),t.restoreSelection();var p=_.getSelectedNodeByType(t,"link"),d=p?oe.string(p):"",v=s.find("#"+r).val();(function(m,g,y){Wi(this,void 0,void 0,function(){var h,b;return Gi(this,function(w){switch(w.label){case 0:return y?[4,w_("editLink",m,g,y)]:[2];case 1:return w.sent()?[4,E_("editLink",m,y)]:[2];case 2:return h=w.sent(),b={url:R4(h)},V.setNodes(m,b,{match:function(x){return _.checkNodeType(x,"link")}}),[2]}})})})(t,d,v),t.hidePanelOrModal()}),this.$content=s}var l=this.$content;l.empty(),l.append(i),l.append(u);var c=this.getValue(t);return a.val(c),setTimeout(function(){a.focus()}),l[0]},e})(),Loe=(function(){function e(){this.title=ie("link.unLink"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M608.16328 811.815036c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.347563 89.347564c-118.525421 118.523421-311.38448 118.531421-429.919901 0-118.527421-118.529421-118.527421-311.39048 0-429.917901l89.349564-89.349563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.195613 79.195613c9.371954 9.371954 9.371954 24.56788 0 33.941834l-89.349563 89.347564c-56.143726 56.145726-56.143726 147.49928 0 203.645005 56.143726 56.143726 147.49928 56.145726 203.647005 0l89.347564-89.347563c9.371954-9.371954 24.56788-9.371954 33.941834 0l79.193613 79.195613z m-113.135447-520.429459c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.347564-89.347564c56.143726-56.149726 147.49928-56.145726 203.647006 0 56.143726 56.145726 56.143726 147.49928 0 203.645006l-89.349564 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.195613 79.195613c9.371954 9.371954 24.56788 9.371954 33.941834 0l89.349564-89.349563c118.529421-118.529421 118.529421-311.38848 0-429.917901-118.531421-118.527421-311.38848-118.527421-429.919901 0l-89.347563 89.347564c-9.371954 9.371954-9.371954 24.56788 0 33.941834l79.193613 79.195613z m469.653707 718.556492l45.253779-45.253779c18.745908-18.745908 18.745908-49.13776 0-67.881669L127.195629 14.062931c-18.745908-18.745908-49.13776-18.745908-67.881669 0L14.058181 59.31871c-18.745908 18.745908-18.745908 49.13776 0 67.881669l882.74169 882.74169c18.745908 18.743908 49.13776 18.743908 67.881669 0z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||_.getSelectedNodeByType(t,"link")==null},e.prototype.exec=function(t,r){this.isDisabled(t)||V.unwrapNodes(t,{match:function(n){return _.checkNodeType(n,"link")}})},e})(),Moe=(function(){function e(){this.title=ie("link.view"),this.iconSvg=u_,this.tag="button"}return e.prototype.getSelectedLinkElem=function(t){var r=_.getSelectedNodeByType(t,"link");return r??null},e.prototype.getValue=function(t){var r=this.getSelectedLinkElem(t);return r&&r.url||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedLinkElem(t)==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){if(!r||typeof r!="string")throw new Error("View link failed, link url is '"+r+"'");window.open(r,"_blank")}},e})(),D_={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},zoe={renderElems:[joe],elemsToHtml:[{type:"link",elemToHtml:function(e,t){var r=e,n=r.url,o=r.target;return'<a href="'+n+'" target="'+(o===void 0?"_blank":o)+'">'+t+"</a>"}}],parseElemsHtml:[Noe],menus:[{key:"insertLink",factory:function(){return new Roe},config:D_},{key:"editLink",factory:function(){return new Ioe},config:D_},{key:"unLink",factory:function(){return new Loe}},{key:"viewLink",factory:function(){return new Moe}}],editorPlugin:function(e){var t=e.isInline,r=e.insertData,n=e.normalizeNode;e.insertNode,e.insertText;var o=e;return o.isInline=function(i){return i.type==="link"||t(i)},o.insertData=function(i){var a=i.getData("text/plain");if((function(l){if(typeof l!="string")return!1;var c=l.match(Foe);if(!c)return!1;var f=c[1];return!(!f||!_oe.test(f)&&!Toe.test(f))})(a)){if(!I4(o)){var u=o.selection;if(u!=null){var s=D.string(o,u);C_(o,s,a)}}}else r(i)},o.normalizeNode=function(i){var a=Ge(i,2),u=a[0],s=a[1];return _.getNodeType(u)!=="link"?n([u,s]):oe.string(u)===""?V.removeNodes(o,{at:s}):n([u,s])},o}},Voe=we(1 .valueOf),Hoe=Oe.RangeError,Uoe=Oe.RangeError,S_=Oe.String,A_=Math.floor,z4=we(function(e){var t=St(xn(this)),r="",n=ml(e);if(n<0||n==1/0)throw Hoe("Wrong number of repetitions");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r}),k_=we("".slice),gd=we(1 .toFixed),Dl=function(e,t,r){return t===0?r:t%2==1?Dl(e,t-1,r*e):Dl(e*e,t/2,r)},Sl=function(e,t,r){for(var n=-1,o=r;++n<6;)o+=t*e[n],e[n]=o%1e7,o=A_(o/1e7)},V4=function(e,t){for(var r=6,n=0;--r>=0;)n+=e[r],e[r]=A_(n/t),n=n%t*1e7},O_=function(e){for(var t=6,r="";--t>=0;)if(r!==""||t===0||e[t]!==0){var n=S_(e[t]);r=r===""?n:r+z4("0",7-n.length)+n}return r};function B_(e,t){return"w-e-image-container-"+_.findKey(e,t).id}Jt({target:"Number",proto:!0,forced:Dt(function(){return gd(8e-5,3)!=="0.000"||gd(.9,0)!=="1"||gd(1.255,2)!=="1.25"||gd(0xde0b6b3a7640080,0)!=="1000000000000000128"})||!Dt(function(){gd({})})},{toFixed:function(e){var t,r,n,o,i=Voe(this),a=ml(e),u=[0,0,0,0,0,0],s="",l="0";if(a<0||a>20)throw Uoe("Incorrect fraction digits");if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return S_(i);if(i<0&&(s="-",i=-i),i>1e-21)if(r=(t=(function(c){for(var f=0,p=c;p>=4096;)f+=12,p/=4096;for(;p>=2;)f+=1,p/=2;return f})(i*Dl(2,69,1))-69)<0?i*Dl(2,-t,1):i/Dl(2,t,1),r*=4503599627370496,(t=52-t)>0){for(Sl(u,0,r),n=a;n>=7;)Sl(u,1e7,0),n-=7;for(Sl(u,Dl(10,n,1),0),n=t-1;n>=23;)V4(u,1<<23),n-=23;V4(u,1<<n),Sl(u,1,1),V4(u,2),l=O_(u)}else Sl(u,0,r),Sl(u,1<<-t,0),l=O_(u)+z4("0",a);return a>0?s+((o=l.length)<=a?"0."+z4("0",a-o)+l:k_(l,0,o-a)+"."+k_(l,o-a)):s+l}});var qoe={type:"image",renderElem:function(e,t,r){var n=e,o=n.src,i=n.alt,a=i===void 0?"":i,u=n.href,s=u===void 0?"":u,l=n.style,c=l===void 0?{}:l,f=c.width,p=f===void 0?"":f,d=c.height,v=d===void 0?"":d,m=_.isNodeSelected(r,e),g={};p&&(g.width="100%"),v&&(g.height="100%");var y=Ee("img",{style:g,src:o,alt:a,"data-href":s}),h=r.isDisabled();return m&&!h?(function(b,w,x,A){var S=T("body"),B=B_(b,w),P=A.width,H=A.height,U=0,W=0,C=0,z=!1,k=null;function I(Q){k=(function(){var j=T("#"+B);if(j.length===0)throw new Error("Cannot find image container elem");return j})(),U=Q;var F=k.find("img");if(F.length===0)throw new Error("Cannot find image elem");W=F.width(),C=F.height(),S.on("mousemove",Y),S.on("mouseup",$);var O=_.getHoverbar(b);O&&O.hideAndClean()}var Y=tu(function(Q){Q.preventDefault();var F=Q.clientX,O=W+(z?U-F:F-U),j=C*(O/W);k!=null&&(O<=15||j<=15||(k.css("width",O+"px"),k.css("height",j+"px")))},100);function $(Q){if(S.off("mousemove",Y),k!=null){var F=k.width().toFixed(2),O=k.height().toFixed(2),j={style:qi(qi({},w.style),{width:F+"px",height:O+"px"})};V.setNodes(b,j,{at:_.findPath(b,w)}),S.off("mouseup",$)}}var ee={};return P&&(ee.width=P),H&&(ee.height=H),Ee("div",{id:B,style:ee,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(Q){var F=T(Q.target);F.hasClass("w-e-image-dragger")&&(Q.preventDefault(),(F.hasClass("left-top")||F.hasClass("left-bottom"))&&(z=!0),I(Q.clientX))}}},x,Ee("div",{className:"w-e-image-dragger left-top"}),Ee("div",{className:"w-e-image-dragger right-top"}),Ee("div",{className:"w-e-image-dragger left-bottom"}),Ee("div",{className:"w-e-image-dragger right-bottom"}))})(r,e,y,{width:p,height:v}):(function(b,w,x,A){var S=A.width,B=A.height,P={};return S&&(P.width=S),B&&(P.height=B),Ee("div",{id:B_(b,w),style:P,className:"w-e-image-container"},x)})(r,e,y,{width:p,height:v})}},Woe={selector:"img:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=T(e),o=n.attr("data-href")||"";return o=decodeURIComponent(o),{type:"image",src:n.attr("src")||"",alt:n.attr("alt")||"",href:o,style:{width:qn(n,"width"),height:qn(n,"height")},children:[{text:""}]}}};function F_(e,t,r,n,o){return n===void 0&&(n=""),o===void 0&&(o=""),Wi(this,void 0,void 0,function(){var i,a;return Gi(this,function(u){switch(u.label){case 0:return(i=t.getMenuConfig(e).checkImage)?[4,i(r,n,o)]:[3,2];case 1:if(typeof(a=u.sent())=="string")return t.alert(a,"error"),[2,!1];if(a==null)return[2,!1];u.label=2;case 2:return[2,!0]}})})}function __(e,t,r){return Wi(this,void 0,void 0,function(){var n;return Gi(this,function(o){switch(o.label){case 0:return(n=t.getMenuConfig(e).parseImageSrc)?[4,n(r)]:[3,2];case 1:return[2,o.sent()];case 2:return[2,r]}})})}function Ou(e,t,r,n){return r===void 0&&(r=""),n===void 0&&(n=""),Wi(this,void 0,void 0,function(){var o,i,a;return Gi(this,function(u){switch(u.label){case 0:return[4,F_("insertImage",e,t,r,n)];case 1:return u.sent()?[4,__("insertImage",e,t)]:[2];case 2:return o=u.sent(),i={type:"image",src:R4(o),href:n,alt:r,style:{},children:[{text:""}]},e.selection===null&&e.restoreSelection(),_.getSelectedNodeByType(e,"image")&&e.move(1),K0(e)||(V.insertNodes(e,i),(a=e.getMenuConfig("insertImage").onInsertedImage)&&a(i)),[2]}})})}function K0(e){var t=e.selection;return t==null||!X.isCollapsed(t)||!!Ge(D.nodes(e,{match:function(r){var n=_.getNodeType(r);return n==="code"||n==="pre"||n==="link"||n==="list-item"||!!n.startsWith("header")||n==="blockquote"||!!D.isVoid(e,r)},universal:!0}),1)[0]}function Y0(){return G0("w-e-insert-image")}var Goe=(function(){function e(){this.title=ie("image.netImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=Y0(),this.altInputId=Y0(),this.hrefInputId=Y0(),this.buttonId=Y0()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return K0(t)},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,u=n.buttonId,s=Ge(rn(ie("image.src"),o),2),l=s[0],c=T(s[1]),f=Ge(rn(ie("image.desc"),i),2),p=f[0],d=T(f[1]),v=Ge(rn(ie("image.link"),a),2),m=v[0],g=T(v[1]),y=Ge(cl(u,ie("common.ok")),1)[0];if(this.$content==null){var h=T("<div></div>");h.on("click","#"+u,function(w){w.preventDefault();var x=h.find("#"+o).val().trim(),A=h.find("#"+i).val().trim(),S=h.find("#"+a).val().trim();r.insertImage(t,x,A,S),t.hidePanelOrModal()}),this.$content=h}var b=this.$content;return b.empty(),b.append(l),b.append(p),b.append(m),b.append(y),c.val(""),d.val(""),g.val(""),setTimeout(function(){c.focus()}),b[0]},e.prototype.insertImage=function(t,r,n,o){n===void 0&&(n=""),o===void 0&&(o=""),r&&(t.restoreSelection(),this.isDisabled(t)||Ou(t,r,n,o))},e})(),Koe=(function(){function e(){this.title=ie("image.delete"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||_.getSelectedNodeByType(t,"image")==null},e.prototype.exec=function(t,r){this.isDisabled(t)||V.removeNodes(t,{match:function(n){return _.checkNodeType(n,"image")}})},e})();function X0(){return G0("w-e-edit-image")}var Yoe=(function(){function e(){this.title=ie("image.edit"),this.iconSvg=a_,this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=X0(),this.altInputId=X0(),this.hrefInputId=X0(),this.buttonId=X0()}return e.prototype.getValue=function(t){return""},e.prototype.getImageNode=function(t){return _.getSelectedNodeByType(t,"image")},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!X.isCollapsed(r)||_.getSelectedNodeByType(t,"image")==null},e.prototype.getModalPositionNode=function(t){return this.getImageNode(t)},e.prototype.getModalContentElem=function(t){var r=this,n=this,o=n.srcInputId,i=n.altInputId,a=n.hrefInputId,u=n.buttonId,s=this.getImageNode(t);if(s==null)throw new Error("Not found selected image node");var l=Ge(rn(ie("image.src"),o),2),c=l[0],f=T(l[1]),p=Ge(rn(ie("image.desc"),i),2),d=p[0],v=T(p[1]),m=Ge(rn(ie("image.link"),a),2),g=m[0],y=T(m[1]),h=Ge(cl(u,ie("common.ok")),1)[0];if(this.$content==null){var b=T("<div></div>");b.on("click","#"+u,function(U){U.preventDefault();var W=b.find("#"+o).val(),C=b.find("#"+i).val(),z=b.find("#"+a).val();r.updateImage(t,W,C,z),t.hidePanelOrModal()}),this.$content=b}var w=this.$content;w.empty(),w.append(c),w.append(d),w.append(g),w.append(h);var x=s,A=x.src,S=x.alt,B=S===void 0?"":S,P=x.href,H=P===void 0?"":P;return f.val(A),v.val(B),y.val(H),setTimeout(function(){f.focus()}),w[0]},e.prototype.updateImage=function(t,r,n,o,i){n===void 0&&(n=""),o===void 0&&(o=""),i===void 0&&(i={}),r&&(t.restoreSelection(),this.isDisabled(t)||(function(a,u,s,l,c){s===void 0&&(s=""),l===void 0&&(l=""),c===void 0&&(c={}),Wi(this,void 0,void 0,function(){var f,p,d,v,m,g;return Gi(this,function(y){switch(y.label){case 0:return[4,F_("editImage",a,u,s,l)];case 1:return y.sent()?[4,__("editImage",a,u)]:[2];case 2:return f=y.sent(),(p=_.getSelectedNodeByType(a,"image"))==null||(d=p.style,v={src:f,alt:s,href:l,style:qi(qi({},d===void 0?{}:d),c)},V.setNodes(a,v,{match:function(h){return _.checkNodeType(h,"image")}}),m=_.getSelectedNodeByType(a,"image"),(g=a.getMenuConfig("editImage").onUpdatedImage)&&g(m)),[2]}})})})(t,r,n,o,i))},e})(),Xoe=(function(){function e(){this.title=ie("image.viewLink"),this.iconSvg=u_,this.tag="button"}return e.prototype.getValue=function(t){var r=_.getSelectedNodeByType(t,"image");return r&&r.href||""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!this.getValue(t)},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){if(!r||typeof r!="string")throw new Error("View image link failed, image.href is '"+r+"'");window.open(r,"_blank")}},e})(),H4=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getSelectedNode=function(t){return _.getSelectedNodeByType(t,"image")},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedNode(t)==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=this.getSelectedNode(t);if(n!=null){var o=_.getHoverbar(t);o&&o.hideAndClean();var i=n.style,a={style:qi(qi({},i===void 0?{}:i),{width:this.value,height:""})};V.setNodes(t,a,{match:function(u){return _.checkNodeType(u,"image")}})}}},e})(),$oe=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="30%",r.value="30%",r}return mt(t,e),t})(H4),Zoe=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="50%",r.value="50%",r}return mt(t,e),t})(H4),Joe=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title="100%",r.value="100%",r}return mt(t,e),t})(H4),T_={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,r){return!0},parseImageSrc:function(e){return e}},Qoe={renderElems:[qoe],elemsToHtml:[{type:"image",elemToHtml:function(e,t){var r=e,n=r.src,o=r.alt,i=o===void 0?"":o,a=r.href,u=a===void 0?"":a,s=r.style,l=s===void 0?{}:s,c=l.width,f=c===void 0?"":c,p=l.height,d=p===void 0?"":p,v="";return f&&(v+="width: "+f+";"),d&&(v+="height: "+d+";"),'<img src="'+n+'" alt="'+i+'" data-href="'+u+'" style="'+v+'"/>'}}],parseElemsHtml:[Woe],menus:[{key:"insertImage",factory:function(){return new Goe},config:T_},{key:"deleteImage",factory:function(){return new Koe}},{key:"editImage",factory:function(){return new Yoe},config:T_},{key:"viewImageLink",factory:function(){return new Xoe}},{key:"imageWidth30",factory:function(){return new $oe}},{key:"imageWidth50",factory:function(){return new Zoe}},{key:"imageWidth100",factory:function(){return new Joe}}],editorPlugin:function(e){var t=e.isInline,r=e.isVoid;e.insertNode;var n=e;return n.isInline=function(o){return o.type==="image"||t(o)},n.isVoid=function(o){return o.type==="image"||r(o)},n}},eie={type:"todo",renderElem:function(e,t,r){var n=!1;r.isDisabled()&&(n=!0);var o=Ee("div",{style:{margin:"5px 0"}},Ee("span",{contentEditable:!1,style:{marginRight:"0.5em"}},Ee("input",{type:"checkbox",checked:e.checked,disabled:n,on:{change:function(i){var a=_.findPath(r,e),u={checked:i.target.checked};V.setNodes(r,u,{at:a})}}})),Ee("span",null,t));return o}},tie=(function(){function e(){this.title=ie("todo.todo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M278.755556 403.911111l-79.644445 79.644445L455.111111 739.555556l568.888889-568.888889-79.644444-79.644445L455.111111 580.266667l-176.355555-176.355556zM910.222222 910.222222H113.777778V113.777778h568.888889V0H113.777778C51.2 0 0 51.2 0 113.777778v796.444444c0 62.577778 51.2 113.777778 113.777778 113.777778h796.444444c62.577778 0 113.777778-51.2 113.777778-113.777778V455.111111h-113.777778v455.111111z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!_.getSelectedNodeByType(t,"todo")},e.prototype.isDisabled=function(t){return t.selection==null||!!_.getSelectedElems(t).some(function(r){if(D.isVoid(t,r)&&D.isBlock(t,r))return!0;var n=r.type;return!!["pre","table","list-item"].includes(n)||void 0})},e.prototype.exec=function(t,r){var n=this.isActive(t);V.setNodes(t,{type:n?"paragraph":"todo"})},e})(),rie={selector:'div[data-w-e-type="todo"]',parseElemHtml:function(e,t,r){var n=T(e);(t=t.filter(function(i){return!!le.isText(i)||!!r.isInline(i)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var o=!1;return n.find('input[type="checkbox"]').attr("checked")!=null&&(o=!0),{type:"todo",checked:o,children:t}}},nie={renderElems:[eie],elemsToHtml:[{type:"todo",elemToHtml:function(e,t){return'<div data-w-e-type="todo"><input type="checkbox" disabled '+(e.checked?"checked":"")+">"+t+"</div>"}}],preParseHtml:[{selector:"ul.w-e-todo",preParseHtml:function(e){var t=T(e).find("li"),r=T('<div data-w-e-type="todo"></div>'),n=t.find("input[type]");return r.append(n),t.children()[0].remove(),r[0].innerHTML=r[0].innerHTML+t[0].innerHTML,r[0]}}],parseElemsHtml:[rie],menus:[{key:"todo",factory:function(){return new tie}}],editorPlugin:function(e){var t=e.deleteBackward,r=e;return r.deleteBackward=function(n){var o=e.selection;if(o&&X.isCollapsed(o)){var i=_.getSelectedNodeByType(e,"todo");if(i&&oe.string(i).length===0)return void V.setNodes(e,{type:"paragraph"},{mode:"highest"})}t(n)},r}},oie={type:"blockquote",renderElem:function(e,t,r){return Ee("blockquote",null,t)}},iie={selector:"blockquote:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=T(e);return(t=t.filter(function(o){return!!le.isText(o)||!!r.isInline(o)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]),{type:"blockquote",children:t}}},aie=(function(){function e(){this.title=ie("blockQuote.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M894.6 907.1H605.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C752.7 180.4 711.3 315.8 711.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z m-472 0H133.4c-32.6 0-59-26.4-59-59V608.2l-4-14.9c0-315.9 125.5-485.1 376.5-507.5v59.8C280.7 180.4 239.3 315.8 239.3 442.4v41.2l31.5 12.3h151.8c32.6 0 59 26.4 59 59v293.2c0 32.5-26.4 59-59 59z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!!_.getSelectedNodeByType(t,"blockquote")},e.prototype.isDisabled=function(t){return t.selection==null||!Ge(D.nodes(t,{match:function(r){var n=_.getNodeType(r);return n==="paragraph"||n==="blockquote"},universal:!0,mode:"highest"}),1)[0]},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=this.isActive(t)?"paragraph":"blockquote";V.setNodes(t,{type:n},{mode:"highest"})}},e})(),uie={key:"blockquote",factory:function(){return new aie}},sie=we([].slice),lie=s4("slice"),cie=on("species"),U4=Oe.Array,fie=Math.max;Jt({target:"Array",proto:!0,forced:!lie},{slice:function(e,t){var r,n,o,i=pl(this),a=I0(i),u=rd(e,a),s=rd(t===void 0?a:t,a);if(M0(i)&&(r=i.constructor,(u4(r)&&(r===U4||M0(r.prototype))||vo(r)&&(r=r[cie])===null)&&(r=void 0),r===U4||r===void 0))return sie(i,u,s);for(n=new(r===void 0?U4:r)(fie(s-u,0)),o=0;u<s;u++,o++)u in i&&XF(n,o,i[u]);return n.length=o,n}});var die={renderElems:[oie],elemsToHtml:[{type:"blockquote",elemToHtml:function(e,t){return"<blockquote>"+t+"</blockquote>"}}],parseElemsHtml:[iie],menus:[uie],editorPlugin:function(e){var t=e.insertBreak,r=e.insertText,n=e;return n.insertBreak=function(){var o=n.selection;if(o==null)return t();var i=Ge(D.nodes(e,{match:function(c){return _.checkNodeType(c,"blockquote")},universal:!0}),1)[0];if(!i)return t();var a=i[0],u=_.findPath(e,a),s=D.end(e,u);if(_e.equals(s,o.focus)){var l=oe.string(a);if(l&&l.slice(-1)===`
56
+ `)return e.deleteBackward("character"),void V.insertNodes(n,{type:"paragraph",children:[{text:""}]},{mode:"highest"})}r(`
57
+ `)},n}},pie=(function(){function e(){this.title=ie("emotion.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 1024C230.4 1024 0 793.6 0 512S230.4 0 512 0s512 230.4 512 512-230.4 512-512 512z m0-102.4c226.742857 0 409.6-182.857143 409.6-409.6S738.742857 102.4 512 102.4 102.4 285.257143 102.4 512s182.857143 409.6 409.6 409.6z m-204.8-358.4h409.6c0 113.371429-91.428571 204.8-204.8 204.8s-204.8-91.428571-204.8-204.8z m0-102.4c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8 76.8 32.914286 76.8 76.8-32.914286 76.8-76.8 76.8z m409.6 0c-43.885714 0-76.8-32.914286-76.8-76.8s32.914286-76.8 76.8-76.8c43.885714 0 76.8 32.914286 76.8 76.8s-32.914286 76.8-76.8 76.8z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.exec=function(t,r){},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!Ge(D.nodes(t,{match:function(r){return _.getNodeType(r)==="pre"||!!D.isVoid(t,r)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(t){if(this.$content==null){var r=T('<ul class="w-e-panel-content-emotion"></ul>');r.on("click","li",function(i){var a=i.target;if(a!=null){i.preventDefault();var u=T(a).text();t.insertText(u)}}),this.$content=r}var n=this.$content;if(n==null)return document.createElement("ul");n.empty();var o=t.getMenuConfig("emotion").emotions;return(o===void 0?[]:o).forEach(function(i){var a=T("<li>"+i+"</li>");n.append(a)}),n[0]},e})(),hie={menus:[{key:"emotion",factory:function(){return new pie},config:{emotions:"😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏".split(" ")}}]},gie={1:"12px",2:"14px",3:"16px",4:"19px",5:"24px",6:"32px",7:"48px"},vie={selector:"font",preParseHtml:function(e){var t=T(e);if(Cl(t)!=="font")return e;var r=t.attr("size")||"";r&&(t.removeAttr("size"),t.css("font-size",gie[r]));var n=t.attr("face")||"";return n&&(t.removeAttr("face"),t.css("font-family",n)),t[0]}},mie=we("".indexOf);Jt({target:"String",proto:!0,forced:!c_("includes")},{includes:function(e){return!!~mie(St(xn(this)),St(l_(e)),arguments.length>1?arguments[1]:void 0)}});var Ki,$0,Z0=function(e){return e&&e.Math==Math&&e},Te=Z0(typeof globalThis=="object"&&globalThis)||Z0(typeof window=="object"&&window)||Z0(typeof self=="object"&&self)||Z0(typeof B0=="object"&&B0)||(function(){return this})()||Function("return this")(),q4=Function.prototype,P_=q4.apply,yie=q4.bind,j_=q4.call,N_=typeof Reflect=="object"&&Reflect.apply||(yie?j_.bind(P_):function(){return j_.apply(P_,arguments)}),R_=Function.prototype,W4=R_.bind,G4=R_.call,bie=W4&&W4.bind(G4),Ot=W4?function(e){return e&&bie(G4,e)}:function(e){return e&&function(){return G4.apply(e,arguments)}},Er=function(e){return typeof e=="function"},un=function(e){try{return!!e()}catch{return!0}},Hr=!un(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),vd=Function.prototype.call,mo=vd.bind?vd.bind(vd):function(){return vd.apply(vd,arguments)},I_={}.propertyIsEnumerable,L_=Object.getOwnPropertyDescriptor,wie=L_&&!I_.call({1:2},1)?function(e){var t=L_(this,e);return!!t&&t.enumerable}:I_,K4={f:wie},Bu=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Eie=Ot({}.toString),Cie=Ot("".slice),Fu=function(e){return Cie(Eie(e),8,-1)},Y4=Te.Object,xie=Ot("".split),M_=un(function(){return!Y4("z").propertyIsEnumerable(0)})?function(e){return Fu(e)=="String"?xie(e,""):Y4(e)}:Y4,Die=Te.TypeError,X4=function(e){if(e==null)throw Die("Can't call method on "+e);return e},yo=function(e){return M_(X4(e))},Wn=function(e){return typeof e=="object"?e!==null:Er(e)},Sn={},z_=function(e){return Er(e)?e:void 0},md=function(e,t){return arguments.length<2?z_(Sn[e])||z_(Te[e]):Sn[e]&&Sn[e][t]||Te[e]&&Te[e][t]},V_=Ot({}.isPrototypeOf),$4=md("navigator","userAgent")||"",H_=Te.process,U_=Te.Deno,q_=H_&&H_.versions||U_&&U_.version,W_=q_&&q_.v8;W_&&($0=(Ki=W_.split("."))[0]>0&&Ki[0]<4?1:+(Ki[0]+Ki[1])),!$0&&$4&&(!(Ki=$4.match(/Edge\/(\d+)/))||Ki[1]>=74)&&(Ki=$4.match(/Chrome\/(\d+)/))&&($0=+Ki[1]);var J0=$0,bo=!!Object.getOwnPropertySymbols&&!un(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&J0&&J0<41}),Z4=bo&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Sie=Te.Object,Al=Z4?function(e){return typeof e=="symbol"}:function(e){var t=md("Symbol");return Er(t)&&V_(t.prototype,Sie(e))},Aie=Te.String,kie=Te.TypeError,G_=function(e){if(Er(e))return e;throw kie((function(t){try{return Aie(t)}catch{return"Object"}})(e)+" is not a function")},Oie=Te.TypeError,Bie=Object.defineProperty,Yi=Te["__core-js_shared__"]||(function(e,t){try{Bie(Te,e,{value:t,configurable:!0,writable:!0})}catch{Te[e]=t}return t})("__core-js_shared__",{}),_u=F0(function(e){(e.exports=function(t,r){return Yi[t]||(Yi[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"pure",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Fie=Te.Object,yd=function(e){return Fie(X4(e))},_ie=Ot({}.hasOwnProperty),Ke=Object.hasOwn||function(e,t){return _ie(yd(e),t)},Tie=0,Pie=Math.random(),jie=Ot(1 .toString),Q0=function(e){return"Symbol("+(e===void 0?"":e)+")_"+jie(++Tie+Pie,36)},bd=_u("wks"),Tu=Te.Symbol,K_=Tu&&Tu.for,Nie=Z4?Tu:Tu&&Tu.withoutSetter||Q0,sn=function(e){if(!Ke(bd,e)||!bo&&typeof bd[e]!="string"){var t="Symbol."+e;bo&&Ke(Tu,e)?bd[e]=Tu[e]:bd[e]=Z4&&K_?K_(t):Nie(t)}return bd[e]},Rie=Te.TypeError,Iie=sn("toPrimitive"),kl=function(e){var t=(function(r,n){if(!Wn(r)||Al(r))return r;var o,i,a=(o=r[Iie])==null?void 0:G_(o);if(a){if(i=mo(a,r,n),!Wn(i)||Al(i))return i;throw Rie("Can't convert object to primitive value")}return(function(u,s){var l,c;if(Er(l=u.toString)&&!Wn(c=mo(l,u))||Er(l=u.valueOf)&&!Wn(c=mo(l,u)))return c;throw Oie("Can't convert object to primitive value")})(r)})(e,"string");return Al(t)?t:t+""},J4=Te.document,Lie=Wn(J4)&&Wn(J4.createElement),Y_=function(e){return Lie?J4.createElement(e):{}},X_=!Hr&&!un(function(){return Object.defineProperty(Y_("div"),"a",{get:function(){return 7}}).a!=7}),$_=Object.getOwnPropertyDescriptor,Q4={f:Hr?$_:function(e,t){if(e=yo(e),t=kl(t),X_)try{return $_(e,t)}catch{}if(Ke(e,t))return Bu(!mo(K4.f,e,t),e[t])}},Mie=/#|\.prototype\./,wd=function(e,t){var r=Vie[zie(e)];return r==Uie||r!=Hie&&(Er(t)?un(t):!!t)},zie=wd.normalize=function(e){return String(e).replace(Mie,".").toLowerCase()},Vie=wd.data={},Hie=wd.NATIVE="N",Uie=wd.POLYFILL="P",qie=wd,Z_=Ot(Ot.bind),J_=function(e,t){return G_(e),t===void 0?e:Z_?Z_(e,t):function(){return e.apply(t,arguments)}},Wie=Te.String,Gie=Te.TypeError,Pu=function(e){if(Wn(e))return e;throw Gie(Wie(e)+" is not an object")},Kie=Te.TypeError,Q_=Object.defineProperty,ju={f:Hr?Q_:function(e,t,r){if(Pu(e),t=kl(t),Pu(r),X_)try{return Q_(e,t,r)}catch{}if("get"in r||"set"in r)throw Kie("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},wo=Hr?function(e,t,r){return ju.f(e,t,Bu(1,r))}:function(e,t,r){return e[t]=r,e},Yie=Q4.f,Xie=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return N_(e,this,arguments)};return t.prototype=e.prototype,t},Xi=function(e,t){var r,n,o,i,a,u,s,l,c=e.target,f=e.global,p=e.stat,d=e.proto,v=f?Te:p?Te[c]:(Te[c]||{}).prototype,m=f?Sn:Sn[c]||wo(Sn,c,{})[c],g=m.prototype;for(o in t)r=!qie(f?o:c+(p?".":"#")+o,e.forced)&&v&&Ke(v,o),a=m[o],r&&(u=e.noTargetGet?(l=Yie(v,o))&&l.value:v[o]),i=r&&u?u:t[o],r&&typeof a==typeof i||(s=e.bind&&r?J_(i,Te):e.wrap&&r?Xie(i):d&&Er(i)?Ot(i):i,(e.sham||i&&i.sham||a&&a.sham)&&wo(s,"sham",!0),wo(m,o,s),d&&(Ke(Sn,n=c+"Prototype")||wo(Sn,n,{}),wo(Sn[n],o,i),e.real&&g&&!g[o]&&wo(g,o,i)))},ev=Array.isArray||function(e){return Fu(e)=="Array"},$ie=Math.ceil,Zie=Math.floor,e6=function(e){var t=+e;return t!=t||t===0?0:(t>0?Zie:$ie)(t)},Jie=Math.min,tv=function(e){return(t=e.length)>0?Jie(e6(t),9007199254740991):0;var t},t6=function(e,t,r){var n=kl(t);n in e?ju.f(e,n,Bu(0,r)):e[n]=r},eT={};eT[sn("toStringTag")]="z";var r6=String(eT)==="[object z]",Qie=sn("toStringTag"),eae=Te.Object,tae=Fu((function(){return arguments})())=="Arguments",rv=r6?Fu:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=eae(e),Qie))=="string"?r:tae?Fu(t):(n=Fu(t))=="Object"&&Er(t.callee)?"Arguments":n},rae=Ot(Function.toString);Er(Yi.inspectSource)||(Yi.inspectSource=function(e){return rae(e)});var tT=Yi.inspectSource,rT=function(){},nae=[],nT=md("Reflect","construct"),n6=/^\s*(?:class|function)\b/,oae=Ot(n6.exec),iae=!n6.exec(rT),Ed=function(e){if(!Er(e))return!1;try{return nT(rT,nae,e),!0}catch{return!1}},aae=!nT||un(function(){var e;return Ed(Ed.call)||!Ed(Object)||!Ed(function(){e=!0})||e})?function(e){if(!Er(e))return!1;switch(rv(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return iae||!!oae(n6,tT(e))}:Ed,uae=sn("species"),oT=Te.Array,iT=function(e,t){return new((function(r){var n;return ev(r)&&(n=r.constructor,(aae(n)&&(n===oT||ev(n.prototype))||Wn(n)&&(n=n[uae])===null)&&(n=void 0)),n===void 0?oT:n})(e))(t===0?0:t)},sae=sn("species"),aT=sn("isConcatSpreadable"),uT=Te.TypeError,lae=J0>=51||!un(function(){var e=[];return e[aT]=!1,e.concat()[0]!==e}),cae=J0>=51||!un(function(){var e=[];return(e.constructor={})[sae]=function(){return{foo:1}},e.concat(Boolean).foo!==1}),fae=function(e){if(!Wn(e))return!1;var t=e[aT];return t!==void 0?!!t:ev(e)};Xi({target:"Array",proto:!0,forced:!lae||!cae},{concat:function(e){var t,r,n,o,i,a=yd(this),u=iT(a,0),s=0;for(t=-1,n=arguments.length;t<n;t++)if(fae(i=t===-1?a:arguments[t])){if(s+(o=tv(i))>9007199254740991)throw uT("Maximum allowed index exceeded");for(r=0;r<o;r++,s++)r in i&&t6(u,s,i[r])}else{if(s>=9007199254740991)throw uT("Maximum allowed index exceeded");t6(u,s++,i)}return u.length=s,u}});var nv,dae=Te.String,ov=function(e){if(rv(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return dae(e)},pae=Math.max,hae=Math.min,o6=function(e,t){var r=e6(e);return r<0?pae(r+t,0):hae(r,t)},gae=function(e){return function(t,r,n){var o,i=yo(t),a=tv(i),u=o6(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},vae={indexOf:gae(!1)},Cd={},mae=vae.indexOf,sT=Ot([].push),lT=function(e,t){var r,n=yo(e),o=0,i=[];for(r in n)!Ke(Cd,r)&&Ke(n,r)&&sT(i,r);for(;t.length>o;)Ke(n,r=t[o++])&&(~mae(i,r)||sT(i,r));return i},iv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],i6=Object.keys||function(e){return lT(e,iv)},yae=Hr?Object.defineProperties:function(e,t){Pu(e);for(var r,n=yo(t),o=i6(t),i=o.length,a=0;i>a;)ju.f(e,r=o[a++],n[r]);return e},bae=md("document","documentElement"),cT=_u("keys"),av=function(e){return cT[e]||(cT[e]=Q0(e))},fT=av("IE_PROTO"),a6=function(){},dT=function(e){return"<script>"+e+"<\/script>"},pT=function(e){e.write(dT("")),e.close();var t=e.parentWindow.Object;return e=null,t},uv=function(){try{nv=new ActiveXObject("htmlfile")}catch{}var e,t;uv=typeof document<"u"?document.domain&&nv?pT(nv):((t=Y_("iframe")).style.display="none",bae.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(dT("document.F=Object")),e.close(),e.F):pT(nv);for(var r=iv.length;r--;)delete uv.prototype[iv[r]];return uv()};Cd[fT]=!0;var sv,xd,lv,Nu=Object.create||function(e,t){var r;return e!==null?(a6.prototype=Pu(e),r=new a6,a6.prototype=null,r[fT]=e):r=uv(),t===void 0?r:yae(r,t)},wae=iv.concat("length","prototype"),hT={f:Object.getOwnPropertyNames||function(e){return lT(e,wae)}},Eae=Te.Array,Cae=Math.max,gT=hT.f,vT=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],mT={f:function(e){return vT&&Fu(e)=="Window"?(function(t){try{return gT(t)}catch{return(function(n,o,i){for(var a=tv(n),u=o6(void 0,a),s=o6(a,a),l=Eae(Cae(s-u,0)),c=0;u<s;u++,c++)t6(l,c,n[u]);return l.length=c,l})(vT)}})(e):gT(yo(e))}},u6={f:Object.getOwnPropertySymbols},xae=Ot([].slice),cv=function(e,t,r,n){wo(e,t,r)},s6={f:sn},Dae=ju.f,It=function(e){var t=Sn.Symbol||(Sn.Symbol={});Ke(t,e)||Dae(t,e,{value:s6.f(e)})},Sae=r6?{}.toString:function(){return"[object "+rv(this)+"]"},Aae=ju.f,yT=sn("toStringTag"),fv=function(e,t,r,n){if(e){var o=r?e:e.prototype;Ke(o,yT)||Aae(o,yT,{configurable:!0,value:t}),n&&!r6&&wo(o,"toString",Sae)}},bT=Te.WeakMap,kae=Er(bT)&&/native code/.test(tT(bT)),l6=Te.TypeError,Oae=Te.WeakMap;if(kae||Yi.state){var Ru=Yi.state||(Yi.state=new Oae),Bae=Ot(Ru.get),wT=Ot(Ru.has),Fae=Ot(Ru.set);sv=function(e,t){if(wT(Ru,e))throw new l6("Object already initialized");return t.facade=e,Fae(Ru,e,t),t},xd=function(e){return Bae(Ru,e)||{}},lv=function(e){return wT(Ru,e)}}else{var Ol=av("state");Cd[Ol]=!0,sv=function(e,t){if(Ke(e,Ol))throw new l6("Object already initialized");return t.facade=e,wo(e,Ol,t),t},xd=function(e){return Ke(e,Ol)?e[Ol]:{}},lv=function(e){return Ke(e,Ol)}}var Bl={set:sv,get:xd,has:lv,enforce:function(e){return lv(e)?xd(e):sv(e,{})},getterFor:function(e){return function(t){var r;if(!Wn(t)||(r=xd(t)).type!==e)throw l6("Incompatible receiver, "+e+" required");return r}}},ET=Ot([].push),$i=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,v=yd(s),m=M_(v),g=J_(l,c),y=tv(m),h=0,b=f||iT,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(d=g(p=m[h],h,v),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:ET(w,p)}else switch(e){case 4:return!1;case 7:ET(w,p)}return i?-1:n||o?o:w}},dv=[$i(0),$i(1),$i(2),$i(3),$i(4),$i(5),$i(6),$i(7)][0],Ur=av("hidden"),CT=sn("toPrimitive"),_ae=Bl.set,xT=Bl.getterFor("Symbol"),Gn=Object.prototype,Zi=Te.Symbol,Ji=Zi&&Zi.prototype,DT=Te.TypeError,c6=Te.QObject,Dd=md("JSON","stringify"),ST=Q4.f,Qi=ju.f,AT=mT.f,Tae=K4.f,kT=Ot([].push),Jo=_u("symbols"),Sd=_u("op-symbols"),f6=_u("string-to-symbol-registry"),d6=_u("symbol-to-string-registry"),Pae=_u("wks"),p6=!c6||!c6.prototype||!c6.prototype.findChild,h6=Hr&&un(function(){return Nu(Qi({},"a",{get:function(){return Qi(this,"a",{value:7}).a}})).a!=7})?function(e,t,r){var n=ST(Gn,t);n&&delete Gn[t],Qi(e,t,r),n&&e!==Gn&&Qi(Gn,t,n)}:Qi,g6=function(e,t){var r=Jo[e]=Nu(Ji);return _ae(r,{type:"Symbol",tag:e,description:t}),Hr||(r.description=t),r},pv=function(e,t,r){e===Gn&&pv(Sd,t,r),Pu(e);var n=kl(t);return Pu(r),Ke(Jo,n)?(r.enumerable?(Ke(e,Ur)&&e[Ur][n]&&(e[Ur][n]=!1),r=Nu(r,{enumerable:Bu(0,!1)})):(Ke(e,Ur)||Qi(e,Ur,Bu(1,{})),e[Ur][n]=!0),h6(e,n,r)):Qi(e,n,r)},OT=function(e,t){Pu(e);var r=yo(t),n=i6(r).concat(v6(r));return dv(n,function(o){Hr&&!mo(BT,r,o)||pv(e,o,r[o])}),e},BT=function(e){var t=kl(e),r=mo(Tae,this,t);return!(this===Gn&&Ke(Jo,t)&&!Ke(Sd,t))&&(!(r||!Ke(this,t)||!Ke(Jo,t)||Ke(this,Ur)&&this[Ur][t])||r)},FT=function(e,t){var r=yo(e),n=kl(t);if(r!==Gn||!Ke(Jo,n)||Ke(Sd,n)){var o=ST(r,n);return!o||!Ke(Jo,n)||Ke(r,Ur)&&r[Ur][n]||(o.enumerable=!0),o}},_T=function(e){var t=AT(yo(e)),r=[];return dv(t,function(n){Ke(Jo,n)||Ke(Cd,n)||kT(r,n)}),r},v6=function(e){var t=e===Gn,r=AT(t?Sd:yo(e)),n=[];return dv(r,function(o){!Ke(Jo,o)||t&&!Ke(Gn,o)||kT(n,Jo[o])}),n};if(bo||(Ji=(Zi=function(){if(V_(Ji,this))throw DT("Symbol is not a constructor");var e=arguments.length&&arguments[0]!==void 0?ov(arguments[0]):void 0,t=Q0(e),r=function(n){this===Gn&&mo(r,Sd,n),Ke(this,Ur)&&Ke(this[Ur],t)&&(this[Ur][t]=!1),h6(this,t,Bu(1,n))};return Hr&&p6&&h6(Gn,t,{configurable:!0,set:r}),g6(t,e)}).prototype,cv(Ji,"toString",function(){return xT(this).tag}),cv(Zi,"withoutSetter",function(e){return g6(Q0(e),e)}),K4.f=BT,ju.f=pv,Q4.f=FT,hT.f=mT.f=_T,u6.f=v6,s6.f=function(e){return g6(sn(e),e)},Hr&&Qi(Ji,"description",{configurable:!0,get:function(){return xT(this).description}})),Xi({global:!0,wrap:!0,forced:!bo,sham:!bo},{Symbol:Zi}),dv(i6(Pae),function(e){It(e)}),Xi({target:"Symbol",stat:!0,forced:!bo},{for:function(e){var t=ov(e);if(Ke(f6,t))return f6[t];var r=Zi(t);return f6[t]=r,d6[r]=t,r},keyFor:function(e){if(!Al(e))throw DT(e+" is not a symbol");if(Ke(d6,e))return d6[e]},useSetter:function(){p6=!0},useSimple:function(){p6=!1}}),Xi({target:"Object",stat:!0,forced:!bo,sham:!Hr},{create:function(e,t){return t===void 0?Nu(e):OT(Nu(e),t)},defineProperty:pv,defineProperties:OT,getOwnPropertyDescriptor:FT}),Xi({target:"Object",stat:!0,forced:!bo},{getOwnPropertyNames:_T,getOwnPropertySymbols:v6}),Xi({target:"Object",stat:!0,forced:un(function(){u6.f(1)})},{getOwnPropertySymbols:function(e){return u6.f(yd(e))}}),Dd){var jae=!bo||un(function(){var e=Zi();return Dd([e])!="[null]"||Dd({a:e})!="{}"||Dd(Object(e))!="{}"});Xi({target:"JSON",stat:!0,forced:jae},{stringify:function(e,t,r){var n=xae(arguments),o=t;if((Wn(t)||e!==void 0)&&!Al(e))return ev(t)||(t=function(i,a){if(Er(o)&&(a=mo(o,this,i,a)),!Al(a))return a}),n[1]=t,N_(Dd,null,n)}})}if(!Ji[CT]){var Nae=Ji.valueOf;cv(Ji,CT,function(e){return mo(Nae,this)})}fv(Zi,"Symbol"),Cd[Ur]=!0,It("asyncIterator"),It("hasInstance"),It("isConcatSpreadable"),It("iterator"),It("match"),It("matchAll"),It("replace"),It("search"),It("species"),It("split"),It("toPrimitive"),It("toStringTag"),It("unscopables"),fv(Te.JSON,"JSON",!0);var ea,TT,PT,Rae=Sn.Symbol,Iu={},jT=Function.prototype,Iae=Hr&&Object.getOwnPropertyDescriptor,NT=Ke(jT,"name"),Lae={PROPER:NT&&(function(){}).name==="something",CONFIGURABLE:NT&&(!Hr||Hr&&Iae(jT,"name").configurable)},Mae=!un(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),RT=av("IE_PROTO"),m6=Te.Object,zae=m6.prototype,y6=Mae?m6.getPrototypeOf:function(e){var t=yd(e);if(Ke(t,RT))return t[RT];var r=t.constructor;return Er(r)&&t instanceof r?r.prototype:t instanceof m6?zae:null},b6=sn("iterator"),IT=!1;[].keys&&("next"in(PT=[].keys())?(TT=y6(y6(PT)))!==Object.prototype&&(ea=TT):IT=!0);var Vae=ea==null||un(function(){var e={};return ea[b6].call(e)!==e});ea=Vae?{}:Nu(ea),Er(ea[b6])||cv(ea,b6,function(){return this});var LT={IteratorPrototype:ea,BUGGY_SAFARI_ITERATORS:IT},Hae=LT.IteratorPrototype,Uae=function(){return this};Te.String,Te.TypeError,Object.setPrototypeOf||"__proto__"in{}&&(function(){var e={};try{Ot(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set)(e,[]),e instanceof Array}catch{}})();var qae=Lae.PROPER,w6=LT.BUGGY_SAFARI_ITERATORS,Wae=sn("iterator"),Gae=function(){return this},MT=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=Nu(Hae,{next:Bu(1,h)}),fv(g,w,!1,!0),Iu[w]=Uae})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!w6&&g in p)return p[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,p=e.prototype,d=p[Wae]||p["@@iterator"]||o&&p[o],v=!w6&&d||l(o),m=t=="Array"&&p.entries||d;return m&&(u=y6(m.call(new e)))!==Object.prototype&&u.next&&(fv(u,c,!0,!0),Iu[c]=Gae),qae&&o=="values"&&d&&d.name!=="values"&&(f=!0,v=function(){return mo(d,this)}),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Xi({target:t,proto:!0,forced:w6||f},s)),Iu[t]=v,s},Kae=Bl.set,Yae=Bl.getterFor("Array Iterator");MT(Array,"Array",function(e,t){Kae(this,{type:"Array Iterator",target:yo(e),index:0,kind:t})},function(){var e=Yae(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values"),Iu.Arguments=Iu.Array;var zT=sn("toStringTag");for(var E6 in{CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}){var VT=Te[E6],C6=VT&&VT.prototype;C6&&rv(C6)!==zT&&wo(C6,zT,E6),Iu[E6]=Iu.Array}var Xae=Rae;It("asyncDispose"),It("dispose"),It("matcher"),It("metadata"),It("observable"),It("patternMatch"),It("replaceAll");var hv=Xae,$ae=Ot("".charAt),HT=Ot("".charCodeAt),Zae=Ot("".slice),Jae=function(e){return function(t,r){var n,o,i=ov(X4(t)),a=e6(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=HT(i,a))<55296||n>56319||a+1===u||(o=HT(i,a+1))<56320||o>57343?e?$ae(i,a):n:e?Zae(i,a,a+2):o-56320+(n-55296<<10)+65536}},Qae=Jae(!0),eue=Bl.set,tue=Bl.getterFor("String Iterator");MT(String,"String",function(e){eue(this,{type:"String Iterator",string:ov(e),index:0})},function(){var e,t=tue(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Qae(r,n),t.index+=e.length,{value:e,done:!1})});var rue=s6.f("iterator"),nue=F0(function(e){function t(r){return typeof hv=="function"&&typeof rue=="symbol"?(e.exports=t=function(n){return typeof n},e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=t=function(n){return n&&typeof hv=="function"&&n.constructor===hv&&n!==hv.prototype?"symbol":typeof n},e.exports.default=e.exports,e.exports.__esModule=!0),t(r)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0}),UT=(function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e})(nue),oue=R0.EXISTS,iue=hl.f,qT=Function.prototype,aue=we(qT.toString),WT=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,uue=we(WT.exec);Un&&!oue&&iue(qT,"name",{configurable:!0,get:function(){try{return uue(WT,aue(this))[1]}catch{return""}}});var GT=(function(){function e(){this.tag="select",this.width=80}return e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var r=this.mark,n=D.marks(t);return n&&n[r]?n[r]:""},e.prototype.isDisabled=function(t){return t.selection==null||(this.mark,!!Ge(D.nodes(t,{match:function(r){return _.getNodeType(r)==="pre"||!!D.isVoid(t,r)},universal:!0}),1)[0])},e.prototype.exec=function(t,r){var n=this.mark;r?t.addMark(n,r):t.removeMark(n)},e})(),sue=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ie("fontSize.title"),r.iconSvg=Pne,r.mark="fontSize",r}return mt(t,e),t.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontSizeList,i=o===void 0?[]:o;n.push({text:ie("fontSize.default"),value:""}),i.forEach(function(u){if(typeof u=="string")n.push({text:u,value:u});else if(UT(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l})}});var a=this.getValue(r);return n.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),n},t})(GT),lue=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ie("fontFamily.title"),r.iconSvg=jne,r.mark="fontFamily",r.selectPanelWidth=150,r}return mt(t,e),t.prototype.getOptions=function(r){var n=[],o=r.getMenuConfig(this.mark).fontFamilyList,i=o===void 0?[]:o;n.push({text:ie("fontFamily.default"),value:""}),i.forEach(function(u){if(typeof u=="string")n.push({text:u,value:u,styleForRenderMenuList:{"font-family":u}});else if(UT(u)==="object"){var s=u.name,l=u.value;n.push({text:s,value:l,styleForRenderMenuList:{"font-family":l}})}});var a=this.getValue(r);return n.forEach(function(u){u.value===a?u.selected=!0:delete u.selected}),n},t})(GT),cue={renderStyle:function(e,t){var r=e,n=r.fontSize,o=r.fontFamily,i=t;return n&&ku(i,{fontSize:n}),o&&ku(i,{fontFamily:o}),i},styleToHtml:function(e,t){if(!le.isText(e))return t;var r,n=e,o=n.fontSize,i=n.fontFamily;return o||i?((O4(t)||Cl(r=T(t))!=="span")&&(r=T("<span>"+t+"</span>")),o&&r.css("font-size",o),i&&r.css("font-family",i),El(r)):t},preParseHtml:[vie],parseStyleHtml:function(e,t,r){var n=T(e);if(!le.isText(t))return t;var o=t,i=r.getMenuConfig("fontSize").fontSizeList,a=i===void 0?[]:i,u=qn(n,"font-size"),s=a.find(function(d){return d.value&&d.value===u})||a.includes(u);u&&s&&(o.fontSize=u);var l=r.getMenuConfig("fontFamily").fontFamilyList,c=l===void 0?[]:l,f=qn(n,"font-family").replace(/"/g,""),p=c.find(function(d){return d.value&&d.value===f})||c.includes(f);return f&&p&&(o.fontFamily=f),o},menus:[{key:"fontSize",factory:function(){return new sue},config:{fontSizeList:["12px",{name:"13px",value:"13px"},"14px","15px","16px","19px",{name:"22px",value:"22px"},"24px","29px","32px","40px","48px"]}},{key:"fontFamily",factory:function(){return new lue},config:{fontFamilyList:["黑体",{name:"仿宋",value:"仿宋"},"楷体","标楷体","华文仿宋","华文楷体",{name:"宋体",value:"宋体"},"微软雅黑","Arial","Tahoma","Verdana","Times New Roman","Courier New"]}}]},fue={selector:"p,h1,h2,h3,h4,h5",preParseHtml:function(e){var t=T(e),r=qn(t,"padding-left");return/\dem/.test(r)&&t.css("text-indent","2em"),/\dpx/.test(r)&&parseInt(r,10)%32==0&&t.css("text-indent","2em"),t[0]}},KT=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){var r=Ge(D.nodes(t,{match:function(o){return!!o.indent},universal:!0}),1),n=r[0];return n==null?"":Ge(n,1)[0].indent||""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var r=Ge(D.nodes(t,{match:function(n){var o=_.getNodeType(n);return o==="paragraph"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},e})(),due=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ie("indent.decrease"),r.iconSvg=Nne,r}return mt(t,e),t.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!n.indent},t.prototype.exec=function(r,n){V.setNodes(r,{indent:null},{match:function(o){return ge.isElement(o)}})},t})(KT),pue=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ie("indent.increase"),r.iconSvg=Rne,r}return mt(t,e),t.prototype.isDisabled=function(r){var n=this.getMatchNode(r);return n==null||!!n.indent},t.prototype.exec=function(r,n){V.setNodes(r,{indent:"2em"},{match:function(o){return ge.isElement(o)},mode:"highest"})},t})(KT),hue={renderStyle:function(e,t){if(!ge.isElement(e))return t;var r=e.indent,n=t;return r&&ku(n,{textIndent:r}),n},styleToHtml:function(e,t){if(!ge.isElement(e))return t;var r=e.indent;if(!r)return t;var n=T(t);return n.css("text-indent",r),El(n)},preParseHtml:[fue],parseStyleHtml:function(e,t,r){var n=T(e);if(!ge.isElement(t))return t;var o=t,i=qn(n,"text-indent"),a=parseInt(i,10);return i&&a>0&&(o.indent=i),o},menus:[{key:"indent",factory:function(){return new pue}},{key:"delIndent",factory:function(){return new due}}]},gv=(function(){function e(){this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.getMatchNode=function(t){var r=Ge(D.nodes(t,{match:function(n){var o=_.getNodeType(n);return o==="paragraph"||o==="blockquote"||!!o.startsWith("header")},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},e.prototype.isDisabled=function(t){return t.selection==null||!!_.getSelectedElems(t).some(function(r){if(D.isVoid(t,r)&&D.isBlock(t,r))return!0;var n=r.type;return!!["pre","code"].includes(n)||void 0})},e})(),gue=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ie("justify.left"),r.iconSvg=Ine,r}return mt(t,e),t.prototype.exec=function(r,n){V.setNodes(r,{textAlign:"left"},{match:function(o){return ge.isElement(o)&&!r.isInline(o)}})},t})(gv),vue=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ie("justify.right"),r.iconSvg=Lne,r}return mt(t,e),t.prototype.exec=function(r,n){V.setNodes(r,{textAlign:"right"},{match:function(o){return ge.isElement(o)&&!r.isInline(o)}})},t})(gv),mue=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ie("justify.center"),r.iconSvg=Mne,r}return mt(t,e),t.prototype.exec=function(r,n){V.setNodes(r,{textAlign:"center"},{match:function(o){return ge.isElement(o)&&!r.isInline(o)}})},t})(gv),yue=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.title=ie("justify.justify"),r.iconSvg=zne,r}return mt(t,e),t.prototype.exec=function(r,n){V.setNodes(r,{textAlign:"justify"},{match:function(o){return ge.isElement(o)&&!r.isInline(o)}})},t})(gv),bue={renderStyle:function(e,t){if(!ge.isElement(e))return t;var r=e.textAlign,n=t;return r&&ku(n,{textAlign:r}),n},styleToHtml:function(e,t){if(!ge.isElement(e))return t;var r=e.textAlign;if(!r)return t;var n=T(t);return n.css("text-align",r),El(n)},parseStyleHtml:function(e,t,r){var n=T(e);if(!ge.isElement(t))return t;var o=t,i=qn(n,"text-align");return i&&(o.textAlign=i),o},menus:[{key:"justifyLeft",factory:function(){return new gue}},{key:"justifyRight",factory:function(){return new vue}},{key:"justifyCenter",factory:function(){return new mue}},{key:"justifyJustify",factory:function(){return new yue}}]},wue=(function(){function e(){this.title=ie("lineHeight.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M964 788a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526zM198.93 144.306c6.668-5.798 16.774-5.094 22.573 1.574l122.26 140.582a16 16 0 0 1 3.927 10.5c0 8.836-7.164 16-16 16h-61.8a8 8 0 0 0-8 8v390.077h69.819a16 16 0 0 1 10.502 3.928c6.666 5.8 7.37 15.906 1.57 22.573L221.476 878.123a16 16 0 0 1-1.57 1.57c-6.668 5.8-16.774 5.097-22.574-1.57L75.051 737.538a16 16 0 0 1-3.928-10.5c0-8.837 7.163-16 16-16h69.822V312.96H87.127a16 16 0 0 1-10.502-3.928c-6.666-5.8-7.37-15.906-1.57-22.573l122.303-140.582a16 16 0 0 1 1.572-1.572zM964 465a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z m0-323a8 8 0 0 1 8 8v98a8 8 0 0 1-8 8H438a8 8 0 0 1-8-8v-98a8 8 0 0 1 8-8h526z"></path></svg>',this.tag="select",this.width=80}return e.prototype.getOptions=function(t){var r=[],n=t.getMenuConfig("lineHeight").lineHeightList,o=n===void 0?[]:n;r.push({text:ie("lineHeight.default"),value:""}),o.forEach(function(a){r.push({text:a,value:a})});var i=this.getValue(t);return r.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),r},e.prototype.getMatchNode=function(t){var r=Ge(D.nodes(t,{match:function(n){var o=_.getNodeType(n);return!!o.startsWith("header")||!!["paragraph","blockquote","list-item"].includes(o)},universal:!0,mode:"highest"}),1)[0];return r==null?null:r[0]},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var r=this.getMatchNode(t);return r==null?"":ge.isElement(r)&&r.lineHeight||""},e.prototype.isDisabled=function(t){return t.selection==null||this.getMatchNode(t)==null},e.prototype.exec=function(t,r){V.setNodes(t,{lineHeight:r.toString()},{mode:"highest"})},e})(),Eue={renderStyle:function(e,t){if(!ge.isElement(e))return t;var r=e.lineHeight,n=t;return r&&ku(n,{lineHeight:r}),n},styleToHtml:function(e,t){if(!ge.isElement(e))return t;var r=e.lineHeight;if(!r)return t;var n=T(t);return n.css("line-height",r),El(n)},parseStyleHtml:function(e,t,r){var n=T(e);if(!ge.isElement(t))return t;var o=t,i=r.getMenuConfig("lineHeight").lineHeightList,a=i===void 0?[]:i,u=qn(n,"line-height");return u&&a.includes(u)&&(o.lineHeight=u),o},menus:[{key:"lineHeight",factory:function(){return new wue},config:{lineHeightList:["1","1.15","1.5","2","2.5","3"]}}]},Cue=(function(){function e(){this.title=ie("undo.redo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0.00032 576a510.72 510.72 0 0 0 173.344 384l84.672-96A383.136 383.136 0 0 1 128.00032 576C128.00032 363.936 299.93632 192 512.00032 192c106.048 0 202.048 42.976 271.52 112.48L640.00032 448h384V64l-149.984 149.984A510.272 510.272 0 0 0 512.00032 64C229.21632 64 0.00032 293.216 0.00032 576z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,r){typeof t.redo=="function"&&t.redo()},e})(),xue=(function(){function e(){this.title=ie("undo.undo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M512 64A510.272 510.272 0 0 0 149.984 213.984L0.032 64v384h384L240.512 304.48A382.784 382.784 0 0 1 512.032 192c212.064 0 384 171.936 384 384 0 114.688-50.304 217.632-130.016 288l84.672 96a510.72 510.72 0 0 0 173.344-384c0-282.784-229.216-512-512-512z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null},e.prototype.exec=function(t,r){typeof t.undo=="function"&&t.undo()},e})(),Due={menus:[{key:"redo",factory:function(){return new Cue}},{key:"undo",factory:function(){return new xue}}]},Sue={type:"divider",renderElem:function(e,t,r){return Is("div",{props:{contentEditable:!1,className:"w-e-textarea-divider"},dataset:{selected:_.isNodeSelected(r,e)?"true":""},style:{},on:{mousedown:function(n){return n.preventDefault()}}},[Is("hr")])}},Aue=(function(){function e(){this.title=ie("divider.title"),this.iconSvg='<svg viewBox="0 0 1092 1024"><path d="M0 51.2m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M819.2 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M409.6 460.8m51.2 0l170.666667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-170.666667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path><path d="M0 870.4m51.2 0l989.866667 0q51.2 0 51.2 51.2l0 0q0 51.2-51.2 51.2l-989.866667 0q-51.2 0-51.2-51.2l0 0q0-51.2 51.2-51.2Z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||!!_.getSelectedElems(t).some(function(r){if(t.isVoid(r))return!0;var n=_.getNodeType(r);return n==="table"||n==="pre"||void 0})},e.prototype.exec=function(t,r){V.insertNodes(t,{type:"divider",children:[{text:""}]},{mode:"highest"})},e})(),kue={renderElems:[Sue],elemsToHtml:[{type:"divider",elemToHtml:function(e,t){return"<hr/>"}}],parseElemsHtml:[{selector:"hr:not([data-w-e-type])",parseElemHtml:function(e,t,r){return{type:"divider",children:[{text:""}]}}}],menus:[{key:"divider",factory:function(){return new Aue}}],editorPlugin:function(e){var t=e.isVoid,r=e.normalizeNode,n=e;return n.isVoid=function(o){return o.type==="divider"||t(o)},n.normalizeNode=function(o){var i=Ge(o,2),a=i[0],u=i[1];if(_.getNodeType(a)!=="divider")return r([a,u]);_.isLastNode(n,a)&&V.insertNodes(n,_.genEmptyParagraph(),{at:[u[0]+1]})},n}},Oue=V0.map;Jt({target:"Array",proto:!0,forced:!s4("map")},{map:function(e){return Oue(this,e,arguments.length>1?arguments[1]:void 0)}});var Bue=we([].join),Fue=P0!=Object,_ue=n_("join",",");Jt({target:"Array",proto:!0,forced:Fue||!_ue},{join:function(e){return Bue(pl(this),e===void 0?",":e)}});var Tue=(function(){function e(){this.title=ie("codeBlock.title"),this.iconSvg='<svg viewBox="0 0 1280 1024"><path d="M832 736l96 96 320-320L928 192l-96 96 224 224zM448 288l-96-96L32 512l320 320 96-96-224-224zM701.312 150.528l69.472 18.944-192 704.032-69.472-18.944 192-704.032z"></path></svg>',this.tag="button"}return e.prototype.getSelectCodeElem=function(t){var r=_.getSelectedNodeByType(t,"code");if(r==null)return null;var n=_.getParentNode(t,r);return n==null||_.getNodeType(n)!=="pre"?null:r},e.prototype.getValue=function(t){var r=this.getSelectCodeElem(t);return r==null?"":r.language||""},e.prototype.isActive=function(t){return!!this.getSelectCodeElem(t)},e.prototype.isDisabled=function(t){if(t.selection==null)return!0;var r=_.getSelectedElems(t);return!!r.some(function(n){return t.isVoid(n)})||!r.some(function(n){var o=_.getNodeType(n);if(o==="pre"||o==="paragraph")return!0})},e.prototype.exec=function(t,r){this.isActive(t)?this.changeToPlainText(t):this.changeToCodeBlock(t,r.toString())},e.prototype.changeToPlainText=function(t){var r=this.getSelectCodeElem(t);if(r!=null){var n=oe.string(r);V.removeNodes(t,{mode:"highest"});var o=n.split(`
58
+ `).map(function(i){return{type:"paragraph",children:[{text:i}]}});V.insertNodes(t,o,{mode:"highest"})}},e.prototype.changeToCodeBlock=function(t,r){var n,o,i=[],a=D.nodes(t,{match:function(f){return t.children.includes(f)},universal:!0});try{for(var u=QF(a),s=u.next();!s.done;s=u.next()){var l=Ge(s.value,1)[0];l&&i.push(oe.string(l))}}catch(f){n={error:f}}finally{try{s&&!s.done&&(o=u.return)&&o.call(u)}finally{if(n)throw n.error}}V.removeNodes(t,{mode:"highest"});var c={type:"pre",children:[{type:"code",language:r,children:[{text:i.join(`
59
+ `)}]}]};V.insertNodes(t,c,{mode:"highest"})},e})(),Pue={key:"codeBlock",factory:function(){return new Tue}};Jt({target:"String",proto:!0,forced:cd("anchor")},{anchor:function(e){return ld(this,"a","name",e)}}),b4("match",function(e,t,r){return[function(n){var o=xn(this),i=n==null?void 0:j0(n,e);return i?Rt(i,n,o):new RegExp(n)[e](St(o))},function(n){var o=an(this),i=St(n),a=r(t,o,i);if(a.done)return a.value;if(!o.global)return ud(o,i);var u=o.unicode;o.lastIndex=0;for(var s,l=[],c=0;(s=ud(o,i))!==null;){var f=St(s[0]);l[c]=f,f===""&&(o.lastIndex=w4(i,nd(o.lastIndex),u)),c++}return c===0?null:l}]});var jue={type:"pre",renderElem:function(e,t,r){return Ee("pre",null,t)}},Nue={type:"code",renderElem:function(e,t,r){return Ee("code",null,t)}},Rue={selector:"pre:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=T(e);return(t=t.filter(function(o){return _.getNodeType(o)==="code"})).length===0&&(t=[{type:"code",language:"",children:[{text:n[0].textContent||""}]}]),{type:"pre",children:t.filter(function(o){return _.getNodeType(o)==="code"})}}},Iue={menus:[Pue],editorPlugin:function(e){var t=e.insertBreak,r=e.normalizeNode,n=e.insertData;e.insertNode;var o=e;return o.insertBreak=function(){var i=_.getSelectedNodeByType(o,"code");if(i!=null){var a=(function(l,c){var f=c.selection;if(f==null)return"";var p=oe.string(l),d=f.anchor.offset,v=p.slice(0,d).split(`
60
+ `),m=v.length;return m===0?"":v[m-1]})(i,o);if(a){var u=a.match(/^\s+/);if(u!=null&&u[0]!=null){var s=u[0];return void o.insertText(`
61
+ `+s)}}o.insertText(`
62
+ `)}else t()},o.normalizeNode=function(i){var a=Ge(i,2),u=a[0],s=a[1],l=_.getNodeType(u);return l==="code"&&s.length<=1&&V.setNodes(o,{type:"paragraph"},{at:s}),l==="pre"&&(_.isLastNode(o,u)&&V.insertNodes(o,_.genEmptyParagraph(),{at:[s[0]+1]}),_.getNodeType(u.children[0])!=="code"&&(V.unwrapNodes(o),V.setNodes(o,{type:"paragraph"},{mode:"highest"}))),r([u,s])},o.insertData=function(i){if(_.getSelectedNodeByType(o,"code")!=null){var a=i.getData("text/plain");D.insertText(o,a)}else n(i)},o},renderElems:[jue,Nue],elemsToHtml:[{type:"code",elemToHtml:function(e,t){return"<code>"+t+"</code>"}},{type:"pre",elemToHtml:function(e,t){return"<pre>"+t+"</pre>"}}],preParseHtml:[{selector:"pre>code",preParseHtml:function(e){var t=T(e);if(Cl(t)!=="code")return e;var r=t.find("xmp");if(r.length===0)return e;var n=r.text();return r.remove(),t.text(n),t[0]}}],parseElemsHtml:[{selector:"pre:not([data-w-e-type])>code",parseElemHtml:function(e,t,r){return{type:"code",language:"",children:[{text:T(e)[0].textContent||""}]}}},Rue]},Lue=(function(){function e(){this.title=ie("fullScreen.title"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M133.705143 335.433143V133.851429h201.581714a29.622857 29.622857 0 0 0 29.622857-29.549715V68.754286a29.622857 29.622857 0 0 0-29.622857-29.622857H61.732571A22.893714 22.893714 0 0 0 38.765714 62.025143V335.725714c0 16.310857 13.238857 29.622857 29.622857 29.622857h35.547429a29.842286 29.842286 0 0 0 29.696-29.842285zM690.980571 133.851429h201.581715v201.654857c0 16.310857 13.238857 29.549714 29.622857 29.549714h35.547428a29.622857 29.622857 0 0 0 29.549715-29.549714V61.952a22.893714 22.893714 0 0 0-22.820572-22.893714h-273.554285a29.622857 29.622857 0 0 0-29.549715 29.622857v35.547428c0 16.310857 13.238857 29.696 29.622857 29.696zM335.286857 892.781714H133.705143V691.2a29.622857 29.622857 0 0 0-29.622857-29.622857H68.534857a29.622857 29.622857 0 0 0-29.549714 29.622857v273.554286c0 12.653714 10.24 22.893714 22.820571 22.893714h273.554286a29.622857 29.622857 0 0 0 29.696-29.622857v-35.547429a29.769143 29.769143 0 0 0-29.769143-29.696z m557.348572-201.581714v201.581714H690.907429a29.622857 29.622857 0 0 0-29.622858 29.622857v35.547429c0 16.310857 13.238857 29.622857 29.622858 29.622857h273.554285c12.580571 0 22.893714-10.313143 22.893715-22.893714V691.2a29.622857 29.622857 0 0 0-29.622858-29.622857h-35.547428a29.622857 29.622857 0 0 0-29.696 29.622857z"></path></svg>',this.tag="button",this.alwaysEnable=!0}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return t.isFullScreen},e.prototype.isDisabled=function(t){return!1},e.prototype.exec=function(t,r){t.isFullScreen?t.unFullScreen():t.fullScreen()},e})(),Mue={menus:[{key:"fullScreen",factory:function(){return new Lue}}]},zue=(function(){function e(){this.title=ie("common.enter"),this.iconSvg='<svg viewBox="0 0 1255 1024"><path d="M1095.111111 731.477333h-625.777778V1024L0 658.318222 469.333333 292.408889v292.636444h625.777778V0h156.444445v731.477333z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!!X.isExpanded(r)},e.prototype.exec=function(t,r){var n=t.selection;if(n!=null){var o=[n.anchor.path[0]];V.insertNodes(t,{type:"paragraph",children:[{text:""}]},{at:o}),t.select(D.start(t,o))}},e})(),Vue=[Zne,Boe,cue,hue,bue,Eue,Qoe,kue,hie,zoe,Iue,die,Doe,wne,nie,Due,Mue,{menus:[{key:"enter",factory:function(){return new zue}}]}];Vr("en",{listModule:{unOrderedList:"Unordered list",orderedList:"Ordered list"}}),Vr("zh-CN",{listModule:{unOrderedList:"无序列表",orderedList:"有序列表"}});var YT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function x6(e){var t={exports:{}};return e(t,t.exports),t.exports}var ta,vv,mv=function(e){return e&&e.Math==Math&&e},Ce=mv(typeof globalThis=="object"&&globalThis)||mv(typeof window=="object"&&window)||mv(typeof self=="object"&&self)||mv(typeof YT=="object"&&YT)||(function(){return this})()||Function("return this")(),XT=Function.prototype,D6=XT.bind,S6=XT.call,Hue=D6&&D6.bind(S6),Ne=D6?function(e){return e&&Hue(S6,e)}:function(e){return e&&function(){return S6.apply(e,arguments)}},At=function(e){try{return!!e()}catch{return!0}},Uue=Ne({}.toString),que=Ne("".slice),Qo=function(e){return que(Uue(e),8,-1)},A6=Ce.Object,Wue=Ne("".split),$T=At(function(){return!A6("z").propertyIsEnumerable(0)})?function(e){return Qo(e)=="String"?Wue(e,""):A6(e)}:A6,Gue=Ce.TypeError,yv=function(e){if(e==null)throw Gue("Can't call method on "+e);return e},Fl=function(e){return $T(yv(e))},Kue=Object.defineProperty,k6=function(e,t){try{Kue(Ce,e,{value:t,configurable:!0,writable:!0})}catch{Ce[e]=t}return t},ra=Ce["__core-js_shared__"]||k6("__core-js_shared__",{}),O6=x6(function(e){(e.exports=function(t,r){return ra[t]||(ra[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),Yue=Ce.Object,Ad=function(e){return Yue(yv(e))},Xue=Ne({}.hasOwnProperty),Qt=Object.hasOwn||function(e,t){return Xue(Ad(e),t)},$ue=0,Zue=Math.random(),Jue=Ne(1 .toString),B6=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Jue(++$ue+Zue,36)},Bt=function(e){return typeof e=="function"},Que=function(e){return Bt(e)?e:void 0},kd=function(e,t){return arguments.length<2?Que(Ce[e]):Ce[e]&&Ce[e][t]},F6=kd("navigator","userAgent")||"",ZT=Ce.process,JT=Ce.Deno,QT=ZT&&ZT.versions||JT&&JT.version,eP=QT&&QT.v8;eP&&(vv=(ta=eP.split("."))[0]>0&&ta[0]<4?1:+(ta[0]+ta[1])),!vv&&F6&&(!(ta=F6.match(/Edge\/(\d+)/))||ta[1]>=74)&&(ta=F6.match(/Chrome\/(\d+)/))&&(vv=+ta[1]);var bv,_6=vv,T6=!!Object.getOwnPropertySymbols&&!At(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&_6&&_6<41}),P6=T6&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Od=O6("wks"),Lu=Ce.Symbol,tP=Lu&&Lu.for,ese=P6?Lu:Lu&&Lu.withoutSetter||B6,hr=function(e){if(!Qt(Od,e)||!T6&&typeof Od[e]!="string"){var t="Symbol."+e;T6&&Qt(Lu,e)?Od[e]=Lu[e]:Od[e]=P6&&tP?tP(t):ese(t)}return Od[e]},Ft=function(e){return typeof e=="object"?e!==null:Bt(e)},tse=Ce.String,rse=Ce.TypeError,qr=function(e){if(Ft(e))return e;throw rse(tse(e)+" is not an object")},na=!At(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),j6=Ce.document,nse=Ft(j6)&&Ft(j6.createElement),N6=function(e){return nse?j6.createElement(e):{}},rP=!na&&!At(function(){return Object.defineProperty(N6("div"),"a",{get:function(){return 7}}).a!=7}),Bd=Function.prototype.call,or=Bd.bind?Bd.bind(Bd):function(){return Bd.apply(Bd,arguments)},wv=Ne({}.isPrototypeOf),ose=Ce.Object,R6=P6?function(e){return typeof e=="symbol"}:function(e){var t=kd("Symbol");return Bt(t)&&wv(t.prototype,ose(e))},ise=Ce.String,I6=function(e){try{return ise(e)}catch{return"Object"}},ase=Ce.TypeError,L6=function(e){if(Bt(e))return e;throw ase(I6(e)+" is not a function")},Fd=function(e,t){var r=e[t];return r==null?void 0:L6(r)},use=Ce.TypeError,sse=Ce.TypeError,lse=hr("toPrimitive"),M6=function(e){var t=(function(r,n){if(!Ft(r)||R6(r))return r;var o,i=Fd(r,lse);if(i){if(o=or(i,r,n),!Ft(o)||R6(o))return o;throw sse("Can't convert object to primitive value")}return(function(a,u){var s,l;if(Bt(s=a.toString)&&!Ft(l=or(s,a))||Bt(s=a.valueOf)&&!Ft(l=or(s,a)))return l;throw use("Can't convert object to primitive value")})(r)})(e,"string");return R6(t)?t:t+""},cse=Ce.TypeError,nP=Object.defineProperty,Mu={f:na?nP:function(e,t,r){if(qr(e),t=M6(t),qr(r),rP)try{return nP(e,t,r)}catch{}if("get"in r||"set"in r)throw cse("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},fse=Math.ceil,dse=Math.floor,_d=function(e){var t=+e;return t!=t||t===0?0:(t>0?dse:fse)(t)},pse=Math.max,hse=Math.min,z6=function(e,t){var r=_d(e);return r<0?pse(r+t,0):hse(r,t)},gse=Math.min,oP=function(e){return e>0?gse(_d(e),9007199254740991):0},_l=function(e){return oP(e.length)},iP=function(e){return function(t,r,n){var o,i=Fl(t),a=_l(i),u=z6(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},aP={includes:iP(!0),indexOf:iP(!1)},Ev={},vse=aP.indexOf,uP=Ne([].push),sP=function(e,t){var r,n=Fl(e),o=0,i=[];for(r in n)!Qt(Ev,r)&&Qt(n,r)&&uP(i,r);for(;t.length>o;)Qt(n,r=t[o++])&&(~vse(i,r)||uP(i,r));return i},Cv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],mse=Object.keys||function(e){return sP(e,Cv)},yse=na?Object.defineProperties:function(e,t){qr(e);for(var r,n=Fl(t),o=mse(t),i=o.length,a=0;i>a;)Mu.f(e,r=o[a++],n[r]);return e},bse=kd("document","documentElement"),lP=O6("keys"),V6=function(e){return lP[e]||(lP[e]=B6(e))},cP=V6("IE_PROTO"),H6=function(){},fP=function(e){return"<script>"+e+"<\/script>"},dP=function(e){e.write(fP("")),e.close();var t=e.parentWindow.Object;return e=null,t},xv=function(){try{bv=new ActiveXObject("htmlfile")}catch{}var e,t;xv=typeof document<"u"?document.domain&&bv?dP(bv):((t=N6("iframe")).style.display="none",bse.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(fP("document.F=Object")),e.close(),e.F):dP(bv);for(var r=Cv.length;r--;)delete xv.prototype[Cv[r]];return xv()};Ev[cP]=!0;var U6=Object.create||function(e,t){var r;return e!==null?(H6.prototype=qr(e),r=new H6,H6.prototype=null,r[cP]=e):r=xv(),t===void 0?r:yse(r,t)},q6=hr("unscopables"),W6=Array.prototype;W6[q6]==null&&Mu.f(W6,q6,{configurable:!0,value:U6(null)});var Td=function(e){W6[q6][e]=!0},Tl={},wse=Ne(Function.toString);Bt(ra.inspectSource)||(ra.inspectSource=function(e){return wse(e)});var Dv,Pd,Sv,G6=ra.inspectSource,pP=Ce.WeakMap,hP=Bt(pP)&&/native code/.test(G6(pP)),Av=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},oa=na?function(e,t,r){return Mu.f(e,t,Av(1,r))}:function(e,t,r){return e[t]=r,e},K6=Ce.TypeError,Ese=Ce.WeakMap;if(hP||ra.state){var zu=ra.state||(ra.state=new Ese),Cse=Ne(zu.get),gP=Ne(zu.has),xse=Ne(zu.set);Dv=function(e,t){if(gP(zu,e))throw new K6("Object already initialized");return t.facade=e,xse(zu,e,t),t},Pd=function(e){return Cse(zu,e)||{}},Sv=function(e){return gP(zu,e)}}else{var Pl=V6("state");Ev[Pl]=!0,Dv=function(e,t){if(Qt(e,Pl))throw new K6("Object already initialized");return t.facade=e,oa(e,Pl,t),t},Pd=function(e){return Qt(e,Pl)?e[Pl]:{}},Sv=function(e){return Qt(e,Pl)}}var Vu,vP,mP,Eo={set:Dv,get:Pd,has:Sv,enforce:function(e){return Sv(e)?Pd(e):Dv(e,{})},getterFor:function(e){return function(t){var r;if(!Ft(t)||(r=Pd(t)).type!==e)throw K6("Incompatible receiver, "+e+" required");return r}}},yP={}.propertyIsEnumerable,bP=Object.getOwnPropertyDescriptor,Dse={f:bP&&!yP.call({1:2},1)?function(e){var t=bP(this,e);return!!t&&t.enumerable}:yP},wP=Object.getOwnPropertyDescriptor,EP={f:na?wP:function(e,t){if(e=Fl(e),t=M6(t),rP)try{return wP(e,t)}catch{}if(Qt(e,t))return Av(!or(Dse.f,e,t),e[t])}},CP=Function.prototype,Sse=na&&Object.getOwnPropertyDescriptor,xP=Qt(CP,"name"),Y6={PROPER:xP&&(function(){}).name==="something",CONFIGURABLE:xP&&(!na||na&&Sse(CP,"name").configurable)},ei=x6(function(e){var t=Y6.CONFIGURABLE,r=Eo.get,n=Eo.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Bt(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Qt(u,"name")||t&&u.name!==d)&&oa(u,"name",d),(l=n(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Ce?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:oa(i,a,u)):f?i[a]=u:k6(a,u)})(Function.prototype,"toString",function(){return Bt(this)&&r(this).source||G6(this)})}),Ase=Cv.concat("length","prototype"),kv={f:Object.getOwnPropertyNames||function(e){return sP(e,Ase)}},kse={f:Object.getOwnPropertySymbols},Ose=Ne([].concat),Bse=kd("Reflect","ownKeys")||function(e){var t=kv.f(qr(e)),r=kse.f;return r?Ose(t,r(e)):t},Fse=function(e,t){for(var r=Bse(t),n=Mu.f,o=EP.f,i=0;i<r.length;i++){var a=r[i];Qt(e,a)||n(e,a,o(t,a))}},_se=/#|\.prototype\./,jd=function(e,t){var r=Pse[Tse(e)];return r==Nse||r!=jse&&(Bt(t)?At(t):!!t)},Tse=jd.normalize=function(e){return String(e).replace(_se,".").toLowerCase()},Pse=jd.data={},jse=jd.NATIVE="N",Nse=jd.POLYFILL="P",X6=jd,Rse=EP.f,ia=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?Ce:l?Ce[u]||k6(u,{}):(Ce[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=Rse(r,n))&&a.value:r[n],!X6(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Fse(i,o)}(e.sham||o&&o.sham)&&oa(i,"sham",!0),ei(r,n,i,e)}},Ise=!At(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),DP=V6("IE_PROTO"),$6=Ce.Object,Lse=$6.prototype,Ov=Ise?$6.getPrototypeOf:function(e){var t=Ad(e);if(Qt(t,DP))return t[DP];var r=t.constructor;return Bt(r)&&t instanceof r?r.prototype:t instanceof $6?Lse:null},Z6=hr("iterator"),SP=!1;[].keys&&("next"in(mP=[].keys())?(vP=Ov(Ov(mP)))!==Object.prototype&&(Vu=vP):SP=!0);var Mse=Vu==null||At(function(){var e={};return Vu[Z6].call(e)!==e});Mse&&(Vu={}),Bt(Vu[Z6])||ei(Vu,Z6,function(){return this});var J6={IteratorPrototype:Vu,BUGGY_SAFARI_ITERATORS:SP},zse=Mu.f,AP=hr("toStringTag"),Q6=function(e,t,r){e&&!Qt(e=r?e:e.prototype,AP)&&zse(e,AP,{configurable:!0,value:t})},Vse=J6.IteratorPrototype,Hse=function(){return this},Use=Ce.String,qse=Ce.TypeError,Bv=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=Ne(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return qr(n),(function(i){if(typeof i=="object"||Bt(i))return i;throw qse("Can't set "+Use(i)+" as a prototype")})(o),t?e(n,o):n.__proto__=o,n}})():void 0),Wse=Y6.PROPER,Gse=Y6.CONFIGURABLE,kP=J6.IteratorPrototype,eC=J6.BUGGY_SAFARI_ITERATORS,Nd=hr("iterator"),Kse=function(){return this},OP=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=U6(Vse,{next:Av(1,h)}),Q6(g,w,!1),Tl[w]=Hse})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!eC&&g in p)return p[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,p=e.prototype,d=p[Nd]||p["@@iterator"]||o&&p[o],v=!eC&&d||l(o),m=t=="Array"&&p.entries||d;return m&&(u=Ov(m.call(new e)))!==Object.prototype&&u.next&&(Ov(u)!==kP&&(Bv?Bv(u,kP):Bt(u[Nd])||ei(u,Nd,Kse)),Q6(u,c,!0)),Wse&&o=="values"&&d&&d.name!=="values"&&(Gse?oa(p,"name","values"):(f=!0,v=function(){return or(d,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||ia({target:t,proto:!0,forced:eC||f},s)),p[Nd]!==v&&ei(p,Nd,v,{name:o}),Tl[t]=v,s},Yse=Eo.set,Xse=Eo.getterFor("Array Iterator"),Rd=OP(Array,"Array",function(e,t){Yse(this,{type:"Array Iterator",target:Fl(e),index:0,kind:t})},function(){var e=Xse(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");Tl.Arguments=Tl.Array,Td("keys"),Td("values"),Td("entries");var BP={};BP[hr("toStringTag")]="z";var tC=String(BP)==="[object z]",$se=hr("toStringTag"),Zse=Ce.Object,Jse=Qo((function(){return arguments})())=="Arguments",Fv=tC?Qo:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=Zse(e),$se))=="string"?r:Jse?Qo(t):(n=Qo(t))=="Object"&&Bt(t.callee)?"Arguments":n},Qse=tC?{}.toString:function(){return"[object "+Fv(this)+"]"};tC||ei(Object.prototype,"toString",Qse,{unsafe:!0});var ele=Ce.String,ti=function(e){if(Fv(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ele(e)},tle=Ne("".charAt),FP=Ne("".charCodeAt),rle=Ne("".slice),nle=function(e){return function(t,r){var n,o,i=ti(yv(t)),a=_d(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=FP(i,a))<55296||n>56319||a+1===u||(o=FP(i,a+1))<56320||o>57343?e?tle(i,a):n:e?rle(i,a,a+2):o-56320+(n-55296<<10)+65536}},_P={charAt:nle(!0)},ole=_P.charAt,ile=Eo.set,ale=Eo.getterFor("String Iterator");OP(String,"String",function(e){ile(this,{type:"String Iterator",string:ti(e),index:0})},function(){var e,t=ale(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=ole(r,n),t.index+=e.length,{value:e,done:!1})});var rC=function(e,t,r){for(var n in t)ei(e,n,t[n],r);return e},ule=Ce.Array,sle=Math.max,TP=kv.f,PP=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],lle={f:function(e){return PP&&Qo(e)=="Window"?(function(t){try{return TP(t)}catch{return(function(n,o,i){for(var a,u,s,l,c=_l(n),f=z6(void 0,c),p=z6(c,c),d=ule(sle(p-f,0)),v=0;f<p;f++,v++)a=d,u=v,s=n[f],(l=M6(u))in a?Mu.f(a,l,Av(0,s)):a[l]=s;return d.length=v,d})(PP)}})(e):TP(Fl(e))}},jP=At(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),_v=Object.isExtensible,Hu=At(function(){_v(1)})||jP?function(e){return!!Ft(e)&&(!jP||Qo(e)!="ArrayBuffer")&&(!_v||_v(e))}:_v,cle=!At(function(){return Object.isExtensible(Object.preventExtensions({}))}),nC=x6(function(e){var t=Mu.f,r=!1,n=B6("meta"),o=0,i=function(u){t(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var u=kv.f,s=Ne([].splice),l={};l[n]=1,u(l).length&&(kv.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===n){s(f,p,1);break}return f},ia({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:lle.f}))},fastKey:function(u,s){if(!Ft(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Qt(u,n)){if(!Hu(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!Qt(u,n)){if(!Hu(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return cle&&r&&Hu(u)&&!Qt(u,n)&&i(u),u}};Ev[n]=!0}),NP=Ne(Ne.bind),oC=function(e,t){return L6(e),t===void 0?e:NP?NP(e,t):function(){return e.apply(t,arguments)}},fle=hr("iterator"),dle=Array.prototype,ple=hr("iterator"),RP=function(e){if(e!=null)return Fd(e,ple)||Fd(e,"@@iterator")||Tl[Fv(e)]},hle=Ce.TypeError,IP=function(e,t,r){var n,o;qr(e);try{if(!(n=Fd(e,"return"))){if(t==="throw")throw r;return r}n=or(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return qr(n),r},gle=Ce.TypeError,Tv=function(e,t){this.stopped=e,this.result=t},LP=Tv.prototype,MP=function(e,t,r){var n,o,i,a,u,s,l,c,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),m=oC(t,f),g=function(h){return n&&IP(n,"normal",h),new Tv(!0,h)},y=function(h){return p?(qr(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(d)n=e;else{if(!(o=RP(e)))throw gle(I6(e)+" is not iterable");if((c=o)!==void 0&&(Tl.Array===c||dle[fle]===c)){for(i=0,a=_l(e);a>i;i++)if((u=y(e[i]))&&wv(LP,u))return u;return new Tv(!1)}n=(function(h,b){var w=arguments.length<2?RP(h):b;if(L6(w))return qr(or(w,h));throw hle(I6(h)+" is not iterable")})(e,o)}for(s=n.next;!(l=or(s,n)).done;){try{u=y(l.value)}catch(h){IP(n,"throw",h)}if(typeof u=="object"&&u&&wv(LP,u))return u}return new Tv(!1)},vle=Ce.TypeError,zP=function(e,t){if(wv(t,e))return e;throw vle("Incorrect invocation")},VP=hr("iterator"),HP=!1;try{var mle=0,UP={next:function(){return{done:!!mle++}},return:function(){HP=!0}};UP[VP]=function(){return this},Array.from(UP,function(){throw 2})}catch{}var iC=Array.isArray||function(e){return Qo(e)=="Array"},qP=function(){},yle=[],WP=kd("Reflect","construct"),aC=/^\s*(?:class|function)\b/,ble=Ne(aC.exec),wle=!aC.exec(qP),Id=function(e){if(!Bt(e))return!1;try{return WP(qP,yle,e),!0}catch{return!1}},Ele=!WP||At(function(){var e;return Id(Id.call)||!Id(Object)||!Id(function(){e=!0})||e})?function(e){if(!Bt(e))return!1;switch(Fv(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return wle||!!ble(aC,G6(e))}:Id,Cle=hr("species"),GP=Ce.Array,KP=function(e,t){return new((function(r){var n;return iC(r)&&(n=r.constructor,(Ele(n)&&(n===GP||iC(n.prototype))||Ft(n)&&(n=n[Cle])===null)&&(n=void 0)),n===void 0?GP:n})(e))(t===0?0:t)},YP=Ne([].push),uC=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,v=Ad(s),m=$T(v),g=oC(l,c),y=_l(m),h=0,b=f||KP,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(d=g(p=m[h],h,v),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:YP(w,p)}else switch(e){case 4:return!1;case 7:YP(w,p)}return i?-1:n||o?o:w}},sC={filter:uC(2),find:uC(5),findIndex:uC(6)},Pv=nC.getWeakData,xle=Eo.set,Dle=Eo.getterFor,Sle=sC.find,Ale=sC.findIndex,kle=Ne([].splice),Ole=0,jv=function(e){return e.frozen||(e.frozen=new XP)},XP=function(){this.entries=[]},lC=function(e,t){return Sle(e.entries,function(r){return r[0]===t})};XP.prototype={get:function(e){var t=lC(this,e);if(t)return t[1]},has:function(e){return!!lC(this,e)},set:function(e,t){var r=lC(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Ale(this.entries,function(r){return r[0]===e});return~t&&kle(this.entries,t,1),!!~t}};var Ld,$P={getConstructor:function(e,t,r,n){var o=e(function(s,l){zP(s,i),xle(s,{type:t,id:Ole++,frozen:void 0}),l!=null&&MP(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=Dle(t),u=function(s,l,c){var f=a(s),p=Pv(qr(l),!0);return p===!0?jv(f).set(l,c):p[f.id]=c,s};return rC(i,{delete:function(s){var l=a(this);if(!Ft(s))return!1;var c=Pv(s);return c===!0?jv(l).delete(s):c&&Qt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!Ft(s))return!1;var c=Pv(s);return c===!0?jv(l).has(s):c&&Qt(c,l.id)}}),rC(i,r?{get:function(s){var l=a(this);if(Ft(s)){var c=Pv(s);return c===!0?jv(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},Nv=Eo.enforce,Ble=!Ce.ActiveXObject&&"ActiveXObject"in Ce,ZP=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Fle=(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=Ce[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=Ne(u[g]);ei(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!Ft(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!Ft(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!Ft(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(X6(e,!Bt(a)||!(o||u.forEach&&!At(function(){new a().entries().next()}))))s=r.getConstructor(t,e,n,i),nC.enable();else if(X6(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=At(function(){f.has(1)}),v=(function(g,y){if(!HP)return!1;var h=!1;try{var b={};b[VP]=function(){return{next:function(){return{done:h=!0}}}},(function(w){new a(w)})(b)}catch{}return h})(),m=!o&&At(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});v||((s=t(function(g,y){zP(g,u);var h=(function(b,w,x){var A,S;return Bv&&Bt(A=w.constructor)&&A!==x&&Ft(S=A.prototype)&&S!==x.prototype&&Bv(b,S),b})(new a,g,s);return y!=null&&MP(y,h[i],{that:h,AS_ENTRIES:n}),h})).prototype=u,u.constructor=s),(d||m)&&(c("delete"),c("has"),n&&c("get")),(m||p)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,ia({global:!0,forced:s!=a},l),Q6(s,e),o||r.setStrong(s,e,n),s})("WeakMap",ZP,$P);if(hP&&Ble){Ld=$P.getConstructor(ZP,"WeakMap",!0),nC.enable();var Md=Fle.prototype,JP=Ne(Md.delete),Rv=Ne(Md.has),QP=Ne(Md.get),ej=Ne(Md.set);rC(Md,{delete:function(e){if(Ft(e)&&!Hu(e)){var t=Nv(this);return t.frozen||(t.frozen=new Ld),JP(this,e)||t.frozen.delete(e)}return JP(this,e)},has:function(e){if(Ft(e)&&!Hu(e)){var t=Nv(this);return t.frozen||(t.frozen=new Ld),Rv(this,e)||t.frozen.has(e)}return Rv(this,e)},get:function(e){if(Ft(e)&&!Hu(e)){var t=Nv(this);return t.frozen||(t.frozen=new Ld),Rv(this,e)?QP(this,e):t.frozen.get(e)}return QP(this,e)},set:function(e,t){if(Ft(e)&&!Hu(e)){var r=Nv(this);r.frozen||(r.frozen=new Ld),Rv(this,e)?ej(this,e,t):r.frozen.set(e,t)}else ej(this,e,t);return this}})}var tj={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},cC=N6("span").classList,rj=cC&&cC.constructor&&cC.constructor.prototype,_le=rj===Object.prototype?void 0:rj,fC=hr("iterator"),nj=hr("toStringTag"),dC=Rd.values,oj=function(e,t){if(e){if(e[fC]!==dC)try{oa(e,fC,dC)}catch{e[fC]=dC}if(e[nj]||oa(e,nj,t),tj[t]){for(var r in Rd)if(e[r]!==Rd[r])try{oa(e,r,Rd[r])}catch{e[r]=Rd[r]}}}};for(var pC in tj)oj(Ce[pC]&&Ce[pC].prototype,pC);oj(_le,"DOMTokenList");var hC=new WeakMap,Tle={type:"list-item",renderElem:function(e,t,r){hC.set(e,r);var n=e,o=n.level,i=o===void 0?0:o,a=n.ordered,u={margin:"5px 0 5px "+20*i+"px"},s="";if(a!==void 0&&a){var l=(function(f,p){var d=p,v=d.type,m=d.level,g=m===void 0?0:m,y=d.ordered,h=y!==void 0&&y;if(!h)return-1;var b=1,w=p,x=_.findPath(f,w);if(x[0]===0)return 1;for(;x[0]>0;){var A=M.previous(x),S=D.node(f,A);if(S==null)break;var B=S[0],P=B.level,H=P===void 0?0:P,U=B.type,W=B.ordered;if(U!==v||H<g)break;if(H===g){if(W!==h)break;b++}w=B,x=A}return b})(r,e);s=l+"."}else s=(function(f){f===void 0&&(f=0);var p="";switch(f){case 0:p="•";break;case 1:p="◦";break;default:p="▪"}return p})(i);var c=(function(f){var p,d=f.children||[],v=d.length;if(v===0)return"";for(var m=0;m<v&&!p;m++){var g=d[m];le.isText(g)&&(p=g)}return p==null?"":p.color||""})(e);return Ee("div",{style:u},Ee("span",{contentEditable:!1,style:{marginRight:"0.5em",color:c},"data-w-e-reserve":!0},s),Ee("span",null,t))}},gC=function(e,t){return gC=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},gC(e,t);};function ij(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}gC(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function aj(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function zd(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function uj(e){return D.nodes(e,{at:e.selection||void 0,match:function(t){return _.findPath(e,t).length===1}})}var Ple=aP.includes;ia({target:"Array",proto:!0},{includes:function(e){return Ple(this,e,arguments.length>1?arguments[1]:void 0)}}),Td("includes");var sj,vC,jle=function(){var e=qr(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},mC=Ce.RegExp,lj=At(function(){var e=mC("a","y");return e.lastIndex=2,e.exec("abcd")!=null});lj||At(function(){return!mC("a","y").sticky});var Nle={BROKEN_CARET:lj||At(function(){var e=mC("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},Rle=Ce.RegExp,Ile=At(function(){var e=Rle(".","s");return!(e.dotAll&&e.exec(`
63
+ `)&&e.flags==="s")}),Lle=Ce.RegExp,Mle=At(function(){var e=Lle("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),zle=Eo.get,Vle=O6("native-string-replace",String.prototype.replace),Iv=RegExp.prototype.exec,yC=Iv,Hle=Ne("".charAt),Ule=Ne("".indexOf),qle=Ne("".replace),bC=Ne("".slice),wC=(vC=/b*/g,or(Iv,sj=/a/,"a"),or(Iv,vC,"a"),sj.lastIndex!==0||vC.lastIndex!==0),cj=Nle.BROKEN_CARET,EC=/()??/.exec("")[1]!==void 0;(wC||EC||cj||Ile||Mle)&&(yC=function(e){var t,r,n,o,i,a,u,s=this,l=zle(s),c=ti(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=or(yC,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=cj&&s.sticky,v=or(jle,s),m=s.source,g=0,y=c;if(d&&(v=qle(v,"y",""),Ule(v,"g")===-1&&(v+="g"),y=bC(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Hle(c,s.lastIndex-1)!==`
64
+ `)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),EC&&(r=new RegExp("^"+m+"$(?!\\s)",v)),wC&&(n=s.lastIndex),o=or(Iv,d?r:s,y),d?o?(o.input=bC(o.input,g),o[0]=bC(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:wC&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),EC&&o&&o.length>1&&or(Vle,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=U6(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Lv=yC;ia({target:"RegExp",proto:!0,forced:/./.exec!==Lv},{exec:Lv});var fj=(function(){function e(){this.type="list-item",this.tag="button"}return e.prototype.getListNode=function(t){var r=this.type;return _.getSelectedNodeByType(t,r)},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){var r=this.getListNode(t);if(r==null)return!1;var n=r.ordered;return(n!==void 0&&n)===this.ordered},e.prototype.isDisabled=function(t){return t.selection==null||!!_.getSelectedElems(t).some(function(r){if(D.isVoid(t,r)&&D.isBlock(t,r))return!0;var n=r.type;return!!["pre","code","table"].includes(n)||void 0})},e.prototype.exec=function(t,r){this.isActive(t)?V.setNodes(t,{type:"paragraph",ordered:void 0,level:void 0}):V.setNodes(t,{type:"list-item",ordered:this.ordered,indent:void 0})},e})(),Wle='<svg viewBox="0 0 1024 1024"><path d="M384 64h640v128H384V64z m0 384h640v128H384v-128z m0 384h640v128H384v-128zM0 128a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z m0 384a128 128 0 1 1 256 0 128 128 0 0 1-256 0z"></path></svg>',Gle='<svg viewBox="0 0 1024 1024"><path d="M384 832h640v128H384z m0-384h640v128H384z m0-384h640v128H384zM192 0v256H128V64H64V0zM128 526.016v50.016h128v64H64v-146.016l128-60V384H64v-64h192v146.016zM256 704v320H64v-64h128v-64H64v-64h128v-64H64v-64z"></path></svg>',Kle=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ordered=!1,r.title=ie("listModule.unOrderedList"),r.iconSvg=Wle,r}return ij(t,e),t})(fj),Yle=(function(e){function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ordered=!0,r.title=ie("listModule.orderedList"),r.iconSvg=Gle,r}return ij(t,e),t})(fj),Xle={key:"bulletedList",factory:function(){return new Kle}},$le={key:"numberedList",factory:function(){return new Yle}},dj=[],Zle={type:"list-item",elemToHtml:function(e,t){var r="",n="",o=e.ordered,i=o!==void 0&&o?"ol":"ul",a=(function(l){var c=hC.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,v=d!==void 0&&d,m=f.level,g=m===void 0?0:m,y=_.findPath(c,l);if(y[0]===0)return g+1;var h=M.previous(y),b=D.node(c,h);if(!b)return 0;var w=zd(b,1)[0];if(_.getNodeType(w)!==p)return g+1;var x=w,A=x.ordered,S=A!==void 0&&A,B=x.level,P=B===void 0?0:B;return P<g?g-P:P>g?0:P===g?S===v?0:1:0})(e);if(a>0)for(var u=0;u<a;u++)r+="<"+i+">",dj.push(i);var s=(function(l){var c=hC.get(l);if(c==null)return 0;var f=l,p=f.type,d=f.ordered,v=d!==void 0&&d,m=f.level,g=m===void 0?0:m,y=_.findPath(c,l);if(y[0]===c.children.length-1)return g+1;var h=M.next(y),b=D.node(c,h);if(!b)return 0;var w=zd(b,1)[0];if(_.getNodeType(w)!==p)return g+1;var x=w,A=x.ordered,S=A!==void 0&&A,B=x.level,P=B===void 0?0:B;return P<g?g-P:P>g?0:P===g?S===v?0:1:0})(e);if(s>0)for(u=0;u<s;u++)n+="</"+dj.pop()+">";return{html:"<li>"+t+"</li>",prefix:r,suffix:n}}},Jle=hr("species"),Qle=sC.filter,ece=_6>=51||!At(function(){var e=[];return(e.constructor={})[Jle]=function(){return{foo:1}},e.filter(Boolean).foo!==1});ia({target:"Array",proto:!0,forced:!ece},{filter:function(e){return Qle(this,e,arguments.length>1?arguments[1]:void 0)}});var CC=Function.prototype,pj=CC.apply,tce=CC.bind,hj=CC.call,rce=typeof Reflect=="object"&&Reflect.apply||(tce?hj.bind(pj):function(){return hj.apply(pj,arguments)}),gj=(hr("species"),RegExp.prototype),nce=_P.charAt,oce=function(e,t,r){return t+(r?nce(e,t).length:1)},ice=Math.floor,xC=Ne("".charAt),ace=Ne("".replace),DC=Ne("".slice),uce=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,sce=/\$([$&'`]|\d{1,2})/g,lce=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,s=sce;return o!==void 0&&(o=Ad(o),s=uce),ace(i,s,function(l,c){var f;switch(xC(c,0)){case"$":return"$";case"&":return e;case"`":return DC(t,0,r);case"'":return DC(t,a);case"<":f=o[DC(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=ice(p/10);return d===0?l:d<=u?n[d-1]===void 0?xC(c,1):n[d-1]+xC(c,1):l}f=n[p-1]}return f===void 0?"":f})},cce=Ce.TypeError,fce=function(e,t){var r=e.exec;if(Bt(r)){var n=or(r,e,t);return n!==null&&qr(n),n}if(Qo(e)==="RegExp")return or(Lv,e,t);throw cce("RegExp#exec called on incompatible receiver")},SC=hr("replace"),dce=Math.max,pce=Math.min,hce=Ne([].concat),AC=Ne([].push),vj=Ne("".indexOf),mj=Ne("".slice),gce="a".replace(/./,"$0")==="$0",yj=!!/./[SC]&&/./[SC]("a","$0")==="";(function(e,t,r,n){var o=hr(e),i=!At(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!At(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Ne(/./[o]),s=(function(l,c,f){var p=yj?"$":"$0";return[function(d,v){var m=yv(this),g=d==null?void 0:Fd(d,SC);return g?or(g,d,m,v):or(c,ti(m),d,v)},function(d,v){var m=qr(this),g=ti(d);if(typeof v=="string"&&vj(v,p)===-1&&vj(v,"$<")===-1){var y=f(c,m,g,v);if(y.done)return y.value}var h=Bt(v);h||(v=ti(v));var b=m.global;if(b){var w=m.unicode;m.lastIndex=0}for(var x=[];;){var A=fce(m,g);if(A===null||(AC(x,A),!b))break;ti(A[0])===""&&(m.lastIndex=oce(g,oP(m.lastIndex),w))}for(var S,B="",P=0,H=0;H<x.length;H++){for(var U=ti((A=x[H])[0]),W=dce(pce(_d(A.index),g.length),0),C=[],z=1;z<A.length;z++)AC(C,(S=A[z])===void 0?S:String(S));var k=A.groups;if(h){var I=hce([U],C,W,g);k!==void 0&&AC(I,k);var Y=ti(rce(v,void 0,I))}else Y=lce(U,g,W,C,k,v);W>=P&&(B+=mj(g,P,W)+Y,P=W+U.length)}return B+mj(g,P)}]})(0,""[e],function(l,c,f,p,d){var v=Ne(l),m=c.exec;return m===Lv||m===gj.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:v(f,c,p)}:{done:!1}});ei(String.prototype,e,s[0]),ei(gj,o,s[1])}})("replace",0,!!At(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!gce||yj);var vce=Ce.TypeError,bj=function(e,t,r,n,o,i,a,u){for(var s,l,c=o,f=0,p=!!a&&oC(a,u);f<n;){if(f in r){if(s=p?p(r[f],f,t):r[f],i>0&&iC(s))l=_l(s),c=bj(e,t,s,l,c,i-1)-1;else{if(c>=9007199254740991)throw vce("Exceed the acceptable array length");e[c]=s}c++}f++}return c},mce=bj;function kC(e){return e.length?e[0].tagName.toLowerCase():""}ia({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=Ad(this),r=_l(t),n=KP(t,0);return n.length=mce(n,t,t,r,0,e===void 0?1:_d(e)),n}}),Td("flat"),ia({global:!0},{globalThis:Ce}),gn&&(T.fn.append=gn),hn&&(T.fn.attr=hn),Ts&&(T.fn.parent=Ts);var yce={renderElems:[Tle],editorPlugin:function(e){var t=e.deleteBackward,r=e.handleTab,n=e.normalizeNode,o=e;return o.deleteBackward=function(i){var a=o.selection;if(a!=null)if(X.isExpanded(a))t(i);else{var u=_.getSelectedNodeByType(o,"list-item");if(u!=null)if(a.focus.offset!==0)t(i);else{var s=u.level,l=s===void 0?0:s;l>0?V.setNodes(o,{level:l-1}):V.setNodes(o,{type:"paragraph",ordered:void 0,level:void 0})}else t(i)}else t(i)},o.handleTab=function(){var i,a,u,s,l=o.selection;if(l!=null){if(X.isCollapsed(l)){var c=_.getSelectedNodeByType(o,"list-item");if(c==null)return void r();if(l.focus.offset===0){var f=c.level,p=f===void 0?0:f;return void V.setNodes(o,{level:p+1})}}if(X.isExpanded(l)){var d=0,v=!1;try{for(var m=aj(uj(o)),g=m.next();!g.done;g=m.next()){var y=zd(g.value,1)[0];_.getNodeType(y)==="list-item"?d++:v=!0}}catch(S){i={error:S}}finally{try{g&&!g.done&&(a=m.return)&&a.call(m)}finally{if(i)throw i.error}}if(v||d<=1)return void r();try{for(var h=aj(uj(o)),b=h.next();!b.done;b=h.next()){var w=zd(b.value,2),x=(y=w[0],w[1]),A=y.level;p=A===void 0?0:A,V.setNodes(o,{level:p+1},{at:x})}}catch(S){u={error:S}}finally{try{b&&!b.done&&(s=h.return)&&s.call(h)}finally{if(u)throw u.error}}}else r()}else r()},o.normalizeNode=function(i){var a=zd(i,2),u=a[0],s=a[1],l=_.getNodeType(u);return l!=="bulleted-list"&&l!=="numbered-list"||V.unwrapNodes(o,{at:s}),n([u,s])},o},menus:[Xle,$le],elemsToHtml:[Zle],parseElemsHtml:[{selector:"ul:not([data-w-e-type]),ol:not([data-w-e-type])",parseElemHtml:function(e,t,r){return t.flat(1/0)}},{selector:"li:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=T(e);(t=t.filter(function(a){return!!le.isText(a)||!!r.isInline(a)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var o=(function(a){return kC(a.parent())==="ol"})(n),i=(function(a){for(var u=0,s=a.parent(),l=kC(s);l==="ul"||l==="ol";)l=kC(s=s.parent()),u++;return u-1})(n);return{type:"list-item",ordered:o,level:i,children:t}}}]},wj=Ra(function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,o="[object Arguments]",i="[object Array]",a="[object Boolean]",u="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",f="[object Number]",p="[object Object]",d="[object Promise]",v="[object RegExp]",m="[object Set]",g="[object String]",y="[object Symbol]",h="[object WeakMap]",b="[object ArrayBuffer]",w="[object DataView]",x=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,S={};S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S[o]=S[i]=S[b]=S[a]=S[w]=S[u]=S[s]=S[l]=S[c]=S[f]=S[p]=S[v]=S[m]=S[g]=S[h]=!1;var B=typeof at=="object"&&at&&at.Object===Object&&at,P=typeof self=="object"&&self&&self.Object===Object&&self,H=B||P||Function("return this")(),U=t&&!t.nodeType&&t,W=U&&e&&!e.nodeType&&e,C=W&&W.exports===U,z=C&&B.process,k=(function(){try{return z&&z.binding&&z.binding("util")}catch{}})(),I=k&&k.isTypedArray;function Y(L,K){for(var ne=-1,ye=L==null?0:L.length;++ne<ye;)if(K(L[ne],ne,L))return!0;return!1}function $(L){var K=-1,ne=Array(L.size);return L.forEach(function(ye,rt){ne[++K]=[rt,ye]}),ne}function ee(L){var K=-1,ne=Array(L.size);return L.forEach(function(ye){ne[++K]=ye}),ne}var Q=Array.prototype,F=Function.prototype,O=Object.prototype,j=H["__core-js_shared__"],N=F.toString,q=O.hasOwnProperty,G=(function(){var L=/[^.]+$/.exec(j&&j.keys&&j.keys.IE_PROTO||"");return L?"Symbol(src)_1."+L:""})(),te=O.toString,fe=RegExp("^"+N.call(q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),de=C?H.Buffer:void 0,he=H.Symbol,J=H.Uint8Array,xe=O.propertyIsEnumerable,be=Q.splice,ce=he?he.toStringTag:void 0,Fe=Object.getOwnPropertySymbols,_t=de?de.isBuffer:void 0,qe=(function(L,K){return function(ne){return L(K(ne))}})(Object.keys,Object),tt=_a(H,"DataView"),bt=_a(H,"Map"),Dr=_a(H,"Promise"),ze=_a(H,"Set"),Gr=_a(H,"WeakMap"),$n=_a(Object,"create"),_o=fi(tt),fc=fi(bt),ls=fi(Dr),Zn=fi(ze),To=fi(Gr),si=he?he.prototype:void 0,Sr=si?si.valueOf:void 0;function Ar(L){var K=-1,ne=L==null?0:L.length;for(this.clear();++K<ne;){var ye=L[K];this.set(ye[0],ye[1])}}function kr(L){var K=-1,ne=L==null?0:L.length;for(this.clear();++K<ne;){var ye=L[K];this.set(ye[0],ye[1])}}function Pr(L){var K=-1,ne=L==null?0:L.length;for(this.clear();++K<ne;){var ye=L[K];this.set(ye[0],ye[1])}}function cr(L){var K=-1,ne=L==null?0:L.length;for(this.__data__=new Pr;++K<ne;)this.add(L[K])}function Pn(L){var K=this.__data__=new kr(L);this.size=K.size}function uh(L,K){var ne=di(L),ye=!ne&&xy(L),rt=!ne&&!ye&&Po(L),Ie=!ne&&!ye&&!rt&&No(L),R=ne||ye||rt||Ie,Z=R?(function(Ve,wt){for(var ft=-1,Ye=Array(Ve);++ft<Ve;)Ye[ft]=wt(ft);return Ye})(L.length,String):[],se=Z.length;for(var pe in L)!q.call(L,pe)||R&&(pe=="length"||rt&&(pe=="offset"||pe=="parent")||Ie&&(pe=="buffer"||pe=="byteLength"||pe=="byteOffset")||sh(pe,se))||Z.push(pe);return Z}function Fa(L,K){for(var ne=L.length;ne--;)if(hc(L[ne][0],K))return ne;return-1}function li(L){return L==null?L===void 0?"[object Undefined]":"[object Null]":ce&&ce in Object(L)?(function(K){var ne=q.call(K,ce),ye=K[ce];try{K[ce]=void 0;var rt=!0}catch{}var Ie=te.call(K);return rt&&(ne?K[ce]=ye:delete K[ce]),Ie})(L):(function(K){return te.call(K)})(L)}function dc(L){return Ta(L)&&li(L)==o}function cs(L,K,ne,ye,rt){return L===K||(L==null||K==null||!Ta(L)&&!Ta(K)?L!=L&&K!=K:(function(Ie,R,Z,se,pe,Ve){var wt=di(Ie),ft=di(R),Ye=wt?i:fn(Ie),tr=ft?i:fn(R),Or=(Ye=Ye==o?p:Ye)==p,fs=(tr=tr==o?p:tr)==p,pi=Ye==tr;if(pi&&Po(Ie)){if(!Po(R))return!1;wt=!0,Or=!1}if(pi&&!Or)return Ve||(Ve=new Pn),wt||No(Ie)?jn(Ie,R,Z,se,pe,Ve):(function(Me,Xe,$e,Tt,jr,Kr,eo){switch($e){case w:if(Me.byteLength!=Xe.byteLength||Me.byteOffset!=Xe.byteOffset)return!1;Me=Me.buffer,Xe=Xe.buffer;case b:return!(Me.byteLength!=Xe.byteLength||!Kr(new J(Me),new J(Xe)));case a:case u:case f:return hc(+Me,+Xe);case s:return Me.name==Xe.name&&Me.message==Xe.message;case v:case g:return Me==Xe+"";case c:var ja=$;case m:var ch=1&Tt;if(ja||(ja=ee),Me.size!=Xe.size&&!ch)return!1;var Ay=eo.get(Me);if(Ay)return Ay==Xe;Tt|=2,eo.set(Me,Xe);var gc=jn(ja(Me),ja(Xe),Tt,jr,Kr,eo);return eo.delete(Me),gc;case y:if(Sr)return Sr.call(Me)==Sr.call(Xe)}return!1})(Ie,R,Ye,Z,se,pe,Ve);if(!(1&Z)){var Pa=Or&&q.call(Ie,"__wrapped__"),De=fs&&q.call(R,"__wrapped__");if(Pa||De){var Je=Pa?Ie.value():Ie,zt=De?R.value():R;return Ve||(Ve=new Pn),pe(Je,zt,Z,se,Ve)}}return pi?(Ve||(Ve=new Pn),(function(Me,Xe,$e,Tt,jr,Kr){var eo=1&$e,ja=ci(Me),ch=ja.length,Ay=ci(Xe).length;if(ch!=Ay&&!eo)return!1;for(var gc=ch;gc--;){var ds=ja[gc];if(!(eo?ds in Xe:q.call(Xe,ds)))return!1}var Yz=Kr.get(Me);if(Yz&&Kr.get(Xe))return Yz==Xe;var ky=!0;Kr.set(Me,Xe),Kr.set(Xe,Me);for(var Y3=eo;++gc<ch;){var Oy=Me[ds=ja[gc]],By=Xe[ds];if(Tt)var Xz=eo?Tt(By,Oy,ds,Xe,Me,Kr):Tt(Oy,By,ds,Me,Xe,Kr);if(!(Xz===void 0?Oy===By||jr(Oy,By,$e,Tt,Kr):Xz)){ky=!1;break}Y3||(Y3=ds=="constructor")}if(ky&&!Y3){var Fy=Me.constructor,_y=Xe.constructor;Fy==_y||!("constructor"in Me)||!("constructor"in Xe)||typeof Fy=="function"&&Fy instanceof Fy&&typeof _y=="function"&&_y instanceof _y||(ky=!1)}return Kr.delete(Me),Kr.delete(Xe),ky})(Ie,R,Z,se,pe,Ve)):!1})(L,K,ne,ye,cs,rt))}function pc(L){return!(!Dy(L)||(function(K){return!!G&&G in K})(L))&&(lh(L)?fe:x).test(fi(L))}function Jn(L){if(ne=(K=L)&&K.constructor,ye=typeof ne=="function"&&ne.prototype||O,K!==ye)return qe(L);var K,ne,ye,rt=[];for(var Ie in Object(L))q.call(L,Ie)&&Ie!="constructor"&&rt.push(Ie);return rt}function jn(L,K,ne,ye,rt,Ie){var R=1&ne,Z=L.length,se=K.length;if(Z!=se&&!(R&&se>Z))return!1;var pe=Ie.get(L);if(pe&&Ie.get(K))return pe==K;var Ve=-1,wt=!0,ft=2&ne?new cr:void 0;for(Ie.set(L,K),Ie.set(K,L);++Ve<Z;){var Ye=L[Ve],tr=K[Ve];if(ye)var Or=R?ye(tr,Ye,Ve,K,L,Ie):ye(Ye,tr,Ve,L,K,Ie);if(Or!==void 0){if(Or)continue;wt=!1;break}if(ft){if(!Y(K,function(fs,pi){if(Pa=pi,!ft.has(Pa)&&(Ye===fs||rt(Ye,fs,ne,ye,Ie)))return ft.push(pi);var Pa})){wt=!1;break}}else if(Ye!==tr&&!rt(Ye,tr,ne,ye,Ie)){wt=!1;break}}return Ie.delete(L),Ie.delete(K),wt}function ci(L){return(function(K,ne,ye){var rt=ne(K);return di(K)?rt:(function(Ie,R){for(var Z=-1,se=R.length,pe=Ie.length;++Z<se;)Ie[pe+Z]=R[Z];return Ie})(rt,ye(K))})(L,Sy,Cy)}function Qn(L,K){var ne,ye,rt=L.__data__;return((ye=typeof(ne=K))=="string"||ye=="number"||ye=="symbol"||ye=="boolean"?ne!=="__proto__":ne===null)?rt[typeof K=="string"?"string":"hash"]:rt.map}function _a(L,K){var ne=(function(ye,rt){return ye?.[rt]})(L,K);return pc(ne)?ne:void 0}Ar.prototype.clear=function(){this.__data__=$n?$n(null):{},this.size=0},Ar.prototype.delete=function(L){var K=this.has(L)&&delete this.__data__[L];return this.size-=K?1:0,K},Ar.prototype.get=function(L){var K=this.__data__;if($n){var ne=K[L];return ne===r?void 0:ne}return q.call(K,L)?K[L]:void 0},Ar.prototype.has=function(L){var K=this.__data__;return $n?K[L]!==void 0:q.call(K,L)},Ar.prototype.set=function(L,K){var ne=this.__data__;return this.size+=this.has(L)?0:1,ne[L]=$n&&K===void 0?r:K,this},kr.prototype.clear=function(){this.__data__=[],this.size=0},kr.prototype.delete=function(L){var K=this.__data__,ne=Fa(K,L);return!(ne<0)&&(ne==K.length-1?K.pop():be.call(K,ne,1),--this.size,!0)},kr.prototype.get=function(L){var K=this.__data__,ne=Fa(K,L);return ne<0?void 0:K[ne][1]},kr.prototype.has=function(L){return Fa(this.__data__,L)>-1},kr.prototype.set=function(L,K){var ne=this.__data__,ye=Fa(ne,L);return ye<0?(++this.size,ne.push([L,K])):ne[ye][1]=K,this},Pr.prototype.clear=function(){this.size=0,this.__data__={hash:new Ar,map:new(bt||kr),string:new Ar}},Pr.prototype.delete=function(L){var K=Qn(this,L).delete(L);return this.size-=K?1:0,K},Pr.prototype.get=function(L){return Qn(this,L).get(L)},Pr.prototype.has=function(L){return Qn(this,L).has(L)},Pr.prototype.set=function(L,K){var ne=Qn(this,L),ye=ne.size;return ne.set(L,K),this.size+=ne.size==ye?0:1,this},cr.prototype.add=cr.prototype.push=function(L){return this.__data__.set(L,r),this},cr.prototype.has=function(L){return this.__data__.has(L)},Pn.prototype.clear=function(){this.__data__=new kr,this.size=0},Pn.prototype.delete=function(L){var K=this.__data__,ne=K.delete(L);return this.size=K.size,ne},Pn.prototype.get=function(L){return this.__data__.get(L)},Pn.prototype.has=function(L){return this.__data__.has(L)},Pn.prototype.set=function(L,K){var ne=this.__data__;if(ne instanceof kr){var ye=ne.__data__;if(!bt||ye.length<199)return ye.push([L,K]),this.size=++ne.size,this;ne=this.__data__=new Pr(ye)}return ne.set(L,K),this.size=ne.size,this};var Cy=Fe?function(L){return L==null?[]:(L=Object(L),(function(K,ne){for(var ye=-1,rt=K==null?0:K.length,Ie=0,R=[];++ye<rt;){var Z=K[ye];ne(Z,ye,K)&&(R[Ie++]=Z)}return R})(Fe(L),function(K){return xe.call(L,K)}))}:function(){return[]},fn=li;function sh(L,K){return!!(K=K??n)&&(typeof L=="number"||A.test(L))&&L>-1&&L%1==0&&L<K}function fi(L){if(L!=null){try{return N.call(L)}catch{}try{return L+""}catch{}}return""}function hc(L,K){return L===K||L!=L&&K!=K}(tt&&fn(new tt(new ArrayBuffer(1)))!=w||bt&&fn(new bt)!=c||Dr&&fn(Dr.resolve())!=d||ze&&fn(new ze)!=m||Gr&&fn(new Gr)!=h)&&(fn=function(L){var K=li(L),ne=K==p?L.constructor:void 0,ye=ne?fi(ne):"";if(ye)switch(ye){case _o:return w;case fc:return c;case ls:return d;case Zn:return m;case To:return h}return K});var xy=dc((function(){return arguments})())?dc:function(L){return Ta(L)&&q.call(L,"callee")&&!xe.call(L,"callee")},di=Array.isArray,Po=_t||function(){return!1};function lh(L){if(!Dy(L))return!1;var K=li(L);return K==l||K=="[object GeneratorFunction]"||K=="[object AsyncFunction]"||K=="[object Proxy]"}function jo(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=n}function Dy(L){var K=typeof L;return L!=null&&(K=="object"||K=="function")}function Ta(L){return L!=null&&typeof L=="object"}var No=I?(function(L){return function(K){return L(K)}})(I):function(L){return Ta(L)&&jo(L.length)&&!!S[li(L)]};function Sy(L){return(K=L)!=null&&jo(K.length)&&!lh(K)?uh(L):Jn(L);var K}e.exports=function(L,K){return cs(L,K)}});Vr("en",{tableModule:{deleteCol:"Delete column",deleteRow:"Delete row",deleteTable:"Delete table",widthAuto:"Width auto",insertCol:"Insert column",insertRow:"Insert row",insertTable:"Insert table",header:"Header"}}),Vr("zh-CN",{tableModule:{deleteCol:"删除列",deleteRow:"删除行",deleteTable:"删除表格",widthAuto:"宽度自适应",insertCol:"插入列",insertRow:"插入行",insertTable:"插入表格",header:"表头"}});var Ej=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cj(e){var t={exports:{}};return e(t,t.exports),t.exports}var aa,Mv,zv=function(e){return e&&e.Math==Math&&e},Pe=zv(typeof globalThis=="object"&&globalThis)||zv(typeof window=="object"&&window)||zv(typeof self=="object"&&self)||zv(typeof Ej=="object"&&Ej)||(function(){return this})()||Function("return this")(),Kt=function(e){try{return!!e()}catch{return!0}},ua=!Kt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Vd=Function.prototype.call,er=Vd.bind?Vd.bind(Vd):function(){return Vd.apply(Vd,arguments)},xj={}.propertyIsEnumerable,Dj=Object.getOwnPropertyDescriptor,bce={f:Dj&&!xj.call({1:2},1)?function(e){var t=Dj(this,e);return!!t&&t.enumerable}:xj},OC=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Sj=Function.prototype,BC=Sj.bind,FC=Sj.call,wce=BC&&BC.bind(FC),Le=BC?function(e){return e&&wce(FC,e)}:function(e){return e&&function(){return FC.apply(e,arguments)}},Ece=Le({}.toString),Cce=Le("".slice),sa=function(e){return Cce(Ece(e),8,-1)},_C=Pe.Object,xce=Le("".split),Aj=Kt(function(){return!_C("z").propertyIsEnumerable(0)})?function(e){return sa(e)=="String"?xce(e,""):_C(e)}:_C,Dce=Pe.TypeError,la=function(e){if(e==null)throw Dce("Can't call method on "+e);return e},Hd=function(e){return Aj(la(e))},Cr=function(e){return typeof e=="function"},Co=function(e){return typeof e=="object"?e!==null:Cr(e)},Sce=function(e){return Cr(e)?e:void 0},Ud=function(e,t){return arguments.length<2?Sce(Pe[e]):Pe[e]&&Pe[e][t]},kj=Le({}.isPrototypeOf),TC=Ud("navigator","userAgent")||"",Oj=Pe.process,Bj=Pe.Deno,Fj=Oj&&Oj.versions||Bj&&Bj.version,_j=Fj&&Fj.v8;_j&&(Mv=(aa=_j.split("."))[0]>0&&aa[0]<4?1:+(aa[0]+aa[1])),!Mv&&TC&&(!(aa=TC.match(/Edge\/(\d+)/))||aa[1]>=74)&&(aa=TC.match(/Chrome\/(\d+)/))&&(Mv=+aa[1]);var PC=Mv,jC=!!Object.getOwnPropertySymbols&&!Kt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&PC&&PC<41}),NC=jC&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ace=Pe.Object,RC=NC?function(e){return typeof e=="symbol"}:function(e){var t=Ud("Symbol");return Cr(t)&&kj(t.prototype,Ace(e))},kce=Pe.String,Tj=function(e){try{return kce(e)}catch{return"Object"}},Oce=Pe.TypeError,Pj=function(e){if(Cr(e))return e;throw Oce(Tj(e)+" is not a function")},IC=function(e,t){var r=e[t];return r==null?void 0:Pj(r)},Bce=Pe.TypeError,Fce=Object.defineProperty,LC=function(e,t){try{Fce(Pe,e,{value:t,configurable:!0,writable:!0})}catch{Pe[e]=t}return t},ca=Pe["__core-js_shared__"]||LC("__core-js_shared__",{}),MC=Cj(function(e){(e.exports=function(t,r){return ca[t]||(ca[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),_ce=Pe.Object,zC=function(e){return _ce(la(e))},Tce=Le({}.hasOwnProperty),An=Object.hasOwn||function(e,t){return Tce(zC(e),t)},Pce=0,jce=Math.random(),Nce=Le(1 .toString),jj=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Nce(++Pce+jce,36)},qd=MC("wks"),Uu=Pe.Symbol,Nj=Uu&&Uu.for,Rce=NC?Uu:Uu&&Uu.withoutSetter||jj,kn=function(e){if(!An(qd,e)||!jC&&typeof qd[e]!="string"){var t="Symbol."+e;jC&&An(Uu,e)?qd[e]=Uu[e]:qd[e]=NC&&Nj?Nj(t):Rce(t)}return qd[e]},Ice=Pe.TypeError,Lce=kn("toPrimitive"),VC=function(e){var t=(function(r,n){if(!Co(r)||RC(r))return r;var o,i=IC(r,Lce);if(i){if(o=er(i,r,n),!Co(o)||RC(o))return o;throw Ice("Can't convert object to primitive value")}return(function(a,u){var s,l;if(Cr(s=a.toString)&&!Co(l=er(s,a))||Cr(s=a.valueOf)&&!Co(l=er(s,a)))return l;throw Bce("Can't convert object to primitive value")})(r)})(e,"string");return RC(t)?t:t+""},HC=Pe.document,Mce=Co(HC)&&Co(HC.createElement),UC=function(e){return Mce?HC.createElement(e):{}},Rj=!ua&&!Kt(function(){return Object.defineProperty(UC("div"),"a",{get:function(){return 7}}).a!=7}),Ij=Object.getOwnPropertyDescriptor,Lj={f:ua?Ij:function(e,t){if(e=Hd(e),t=VC(t),Rj)try{return Ij(e,t)}catch{}if(An(e,t))return OC(!er(bce.f,e,t),e[t])}},zce=Pe.String,Vce=Pe.TypeError,On=function(e){if(Co(e))return e;throw Vce(zce(e)+" is not an object")},Hce=Pe.TypeError,Mj=Object.defineProperty,Wd={f:ua?Mj:function(e,t,r){if(On(e),t=VC(t),On(r),Rj)try{return Mj(e,t,r)}catch{}if("get"in r||"set"in r)throw Hce("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},jl=ua?function(e,t,r){return Wd.f(e,t,OC(1,r))}:function(e,t,r){return e[t]=r,e},Uce=Le(Function.toString);Cr(ca.inspectSource)||(ca.inspectSource=function(e){return Uce(e)});var qC,Vv,WC,GC=ca.inspectSource,zj=Pe.WeakMap,qce=Cr(zj)&&/native code/.test(GC(zj)),Vj=MC("keys"),Hj=function(e){return Vj[e]||(Vj[e]=jj(e))},KC={},Uj=Pe.TypeError,Wce=Pe.WeakMap;if(qce||ca.state){var qu=ca.state||(ca.state=new Wce),Gce=Le(qu.get),qj=Le(qu.has),Kce=Le(qu.set);qC=function(e,t){if(qj(qu,e))throw new Uj("Object already initialized");return t.facade=e,Kce(qu,e,t),t},Vv=function(e){return Gce(qu,e)||{}},WC=function(e){return qj(qu,e)}}else{var Nl=Hj("state");KC[Nl]=!0,qC=function(e,t){if(An(e,Nl))throw new Uj("Object already initialized");return t.facade=e,jl(e,Nl,t),t},Vv=function(e){return An(e,Nl)?e[Nl]:{}},WC=function(e){return An(e,Nl)}}var YC={get:Vv,enforce:function(e){return WC(e)?Vv(e):qC(e,{})}},Wj=Function.prototype,Yce=ua&&Object.getOwnPropertyDescriptor,Gj=An(Wj,"name"),XC={PROPER:Gj&&(function(){}).name==="something",CONFIGURABLE:Gj&&(!ua||ua&&Yce(Wj,"name").configurable)},Gd=Cj(function(e){var t=XC.CONFIGURABLE,r=YC.get,n=YC.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Cr(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!An(u,"name")||t&&u.name!==d)&&jl(u,"name",d),(l=n(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Pe?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:jl(i,a,u)):f?i[a]=u:LC(a,u)})(Function.prototype,"toString",function(){return Cr(this)&&r(this).source||GC(this)})}),Xce=Math.ceil,$ce=Math.floor,Hv=function(e){var t=+e;return t!=t||t===0?0:(t>0?$ce:Xce)(t)},Zce=Math.max,Jce=Math.min,Kd=function(e,t){var r=Hv(e);return r<0?Zce(r+t,0):Jce(r,t)},Qce=Math.min,$C=function(e){return e>0?Qce(Hv(e),9007199254740991):0},Uv=function(e){return $C(e.length)},efe=function(e){return function(t,r,n){var o,i=Hd(t),a=Uv(i),u=Kd(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},tfe=efe(!1),Kj=Le([].push),Yj=function(e,t){var r,n=Hd(e),o=0,i=[];for(r in n)!An(KC,r)&&An(n,r)&&Kj(i,r);for(;t.length>o;)An(n,r=t[o++])&&(~tfe(i,r)||Kj(i,r));return i},qv=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],rfe=qv.concat("length","prototype"),nfe={f:Object.getOwnPropertyNames||function(e){return Yj(e,rfe)}},ofe={f:Object.getOwnPropertySymbols},ife=Le([].concat),afe=Ud("Reflect","ownKeys")||function(e){var t=nfe.f(On(e)),r=ofe.f;return r?ife(t,r(e)):t},ufe=function(e,t){for(var r=afe(t),n=Wd.f,o=Lj.f,i=0;i<r.length;i++){var a=r[i];An(e,a)||n(e,a,o(t,a))}},sfe=/#|\.prototype\./,Yd=function(e,t){var r=cfe[lfe(e)];return r==dfe||r!=ffe&&(Cr(t)?Kt(t):!!t)},lfe=Yd.normalize=function(e){return String(e).replace(sfe,".").toLowerCase()},cfe=Yd.data={},ffe=Yd.NATIVE="N",dfe=Yd.POLYFILL="P",pfe=Yd,hfe=Lj.f,fa=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?Pe:l?Pe[u]||LC(u,{}):(Pe[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=hfe(r,n))&&a.value:r[n],!pfe(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;ufe(i,o)}(e.sham||o&&o.sham)&&jl(i,"sham",!0),Gd(r,n,i,e)}},Xj={};Xj[kn("toStringTag")]="z";var ZC=String(Xj)==="[object z]",gfe=kn("toStringTag"),vfe=Pe.Object,mfe=sa((function(){return arguments})())=="Arguments",JC=ZC?sa:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=vfe(e),gfe))=="string"?r:mfe?sa(t):(n=sa(t))=="Object"&&Cr(t.callee)?"Arguments":n},yfe=Pe.String,xr=function(e){if(JC(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return yfe(e)},bfe=/"/g,wfe=Le("".replace);fa({target:"String",proto:!0,forced:Kt(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,r=xr(la(this)),n="<a",(n+=' name="'+wfe(xr(t),bfe,"&quot;")+'"')+">"+r+"</a>";var t,r,n}});var Wv,$j=function(){var e=On(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},QC=Pe.RegExp,ex=Kt(function(){var e=QC("a","y");return e.lastIndex=2,e.exec("abcd")!=null});ex||Kt(function(){return!QC("a","y").sticky});var Zj={BROKEN_CARET:ex||Kt(function(){var e=QC("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:ex},Efe=Object.keys||function(e){return Yj(e,qv)},Cfe=ua?Object.defineProperties:function(e,t){On(e);for(var r,n=Hd(t),o=Efe(t),i=o.length,a=0;i>a;)Wd.f(e,r=o[a++],n[r]);return e},xfe=Ud("document","documentElement"),Jj=Hj("IE_PROTO"),tx=function(){},Qj=function(e){return"<script>"+e+"<\/script>"},eN=function(e){e.write(Qj("")),e.close();var t=e.parentWindow.Object;return e=null,t},Gv=function(){try{Wv=new ActiveXObject("htmlfile")}catch{}var e,t;Gv=typeof document<"u"?document.domain&&Wv?eN(Wv):((t=UC("iframe")).style.display="none",xfe.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Qj("document.F=Object")),e.close(),e.F):eN(Wv);for(var r=qv.length;r--;)delete Gv.prototype[qv[r]];return Gv()};KC[Jj]=!0;var tN,rx,rN=Object.create||function(e,t){var r;return e!==null?(tx.prototype=On(e),r=new tx,tx.prototype=null,r[Jj]=e):r=Gv(),t===void 0?r:Cfe(r,t)},Dfe=Pe.RegExp,Sfe=Kt(function(){var e=Dfe(".","s");return!(e.dotAll&&e.exec(`
65
+ `)&&e.flags==="s")}),Afe=Pe.RegExp,kfe=Kt(function(){var e=Afe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),Ofe=YC.get,Bfe=MC("native-string-replace",String.prototype.replace),Kv=RegExp.prototype.exec,nx=Kv,Ffe=Le("".charAt),_fe=Le("".indexOf),Tfe=Le("".replace),ox=Le("".slice),ix=(rx=/b*/g,er(Kv,tN=/a/,"a"),er(Kv,rx,"a"),tN.lastIndex!==0||rx.lastIndex!==0),nN=Zj.BROKEN_CARET,ax=/()??/.exec("")[1]!==void 0;(ix||ax||nN||Sfe||kfe)&&(nx=function(e){var t,r,n,o,i,a,u,s=this,l=Ofe(s),c=xr(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=er(nx,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=nN&&s.sticky,v=er($j,s),m=s.source,g=0,y=c;if(d&&(v=Tfe(v,"y",""),_fe(v,"g")===-1&&(v+="g"),y=ox(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&Ffe(c,s.lastIndex-1)!==`
66
+ `)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),ax&&(r=new RegExp("^"+m+"$(?!\\s)",v)),ix&&(n=s.lastIndex),o=er(Kv,d?r:s,y),d?o?(o.input=ox(o.input,g),o[0]=ox(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:ix&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),ax&&o&&o.length>1&&er(Bfe,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=rN(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Xd=nx;fa({target:"RegExp",proto:!0,forced:/./.exec!==Xd},{exec:Xd});var Yv=Array.isArray||function(e){return sa(e)=="Array"},oN=function(){},Pfe=[],iN=Ud("Reflect","construct"),ux=/^\s*(?:class|function)\b/,jfe=Le(ux.exec),Nfe=!ux.exec(oN),$d=function(e){if(!Cr(e))return!1;try{return iN(oN,Pfe,e),!0}catch{return!1}},sx=!iN||Kt(function(){var e;return $d($d.call)||!$d(Object)||!$d(function(){e=!0})||e})?function(e){if(!Cr(e))return!1;switch(JC(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Nfe||!!jfe(ux,GC(e))}:$d,aN=function(e,t,r){var n=VC(t);n in e?Wd.f(e,n,OC(0,r)):e[n]=r},Rfe=kn("species"),lx=function(e){return PC>=51||!Kt(function(){var t=[];return(t.constructor={})[Rfe]=function(){return{foo:1}},t[e](Boolean).foo!==1})},Ife=Le([].slice),Lfe=lx("slice"),Mfe=kn("species"),cx=Pe.Array,zfe=Math.max;function Kn(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function uN(e){var t=e.selection;if(t==null)return!1;var r=Kn(D.nodes(e,{match:function(i){return _.checkNodeType(i,"table-cell")}}),1)[0];if(r){var n=Kn(r,2)[1],o=D.start(e,n);if(_e.equals(t.anchor,o))return!0}return!1}function sN(e,t){var r,n,o=D.nodes(e,{at:t,match:function(s){return _.getNodeType(s)==="table"}}),i=!1;try{for(var a=(function(s){var l=typeof Symbol=="function"&&Symbol.iterator,c=l&&s[l],f=0;if(c)return c.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&f>=s.length&&(s=void 0),{value:s&&s[f++],done:!s}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")})(o),u=a.next();!u.done;u=a.next())u.value,i=!0}catch(s){r={error:s}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return i}fa({target:"Array",proto:!0,forced:!Lfe},{slice:function(e,t){var r,n,o,i=Hd(this),a=Uv(i),u=Kd(e,a),s=Kd(t===void 0?a:t,a);if(Yv(i)&&(r=i.constructor,(sx(r)&&(r===cx||Yv(r.prototype))||Co(r)&&(r=r[Mfe])===null)&&(r=void 0),r===cx||r===void 0))return Ife(i,u,s);for(n=new(r===void 0?cx:r)(zfe(s-u,0)),o=0;u<s;u++,o++)u in i&&aN(n,o,i[u]);return n.length=o,n}});var lN=Le(Le.bind),Vfe=kn("species"),cN=Pe.Array,Hfe=function(e,t){return new((function(r){var n;return Yv(r)&&(n=r.constructor,(sx(n)&&(n===cN||Yv(n.prototype))||Co(n)&&(n=n[Vfe])===null)&&(n=void 0)),n===void 0?cN:n})(e))(t===0?0:t)},fN=Le([].push),Xv=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,v=zC(s),m=Aj(v),g=(function(x,A){return Pj(x),A===void 0?x:lN?lN(x,A):function(){return x.apply(A,arguments)}})(l,c),y=Uv(m),h=0,b=f||Hfe,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(d=g(p=m[h],h,v),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:fN(w,p)}else switch(e){case 4:return!1;case 7:fN(w,p)}return i?-1:n||o?o:w}},$v={forEach:Xv(0),map:Xv(1),filter:Xv(2),find:Xv(5)},Ufe=$v.map;fa({target:"Array",proto:!0,forced:!lx("map")},{map:function(e){return Ufe(this,e,arguments.length>1?arguments[1]:void 0)}});var qfe=ZC?{}.toString:function(){return"[object "+JC(this)+"]"};function Zv(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function dN(e){return Zv(e).every(function(t){return!!t.isHeader})}ZC||Gd(Object.prototype,"toString",qfe,{unsafe:!0});var Wfe=XC.PROPER,fx=RegExp.prototype,pN=fx.toString,Gfe=Le($j),Kfe=Kt(function(){return pN.call({source:"a",flags:"b"})!="/a/b"}),Yfe=Wfe&&pN.name!="toString";(Kfe||Yfe)&&Gd(RegExp.prototype,"toString",function(){var e=On(this),t=xr(e.source),r=e.flags;return"/"+t+"/"+xr(r===void 0&&kj(fx,e)&&!("flags"in fx)?Gfe(e):r)},{unsafe:!0});var dx=kn("unscopables"),px=Array.prototype;px[dx]==null&&Wd.f(px,dx,{configurable:!0,value:rN(null)});var Xfe=$v.find,hN=!0;"find"in[]&&Array(1).find(function(){hN=!1}),fa({target:"Array",proto:!0,forced:hN},{find:function(e){return Xfe(this,e,arguments.length>1?arguments[1]:void 0)}}),px[dx].find=!0;var hx=Function.prototype,gN=hx.apply,$fe=hx.bind,vN=hx.call,mN=typeof Reflect=="object"&&Reflect.apply||($fe?vN.bind(gN):function(){return vN.apply(gN,arguments)}),Zfe=kn("species"),gx=RegExp.prototype,yN=function(e,t,r,n){var o=kn(e),i=!Kt(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!Kt(function(){var l=!1,c=/a/;return e==="split"&&((c={}).constructor={},c.constructor[Zfe]=function(){return c},c.flags="",c[o]=/./[o]),c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Le(/./[o]),s=t(o,""[e],function(l,c,f,p,d){var v=Le(l),m=c.exec;return m===Xd||m===gx.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:v(f,c,p)}:{done:!1}});Gd(String.prototype,e,s[0]),Gd(gx,o,s[1])}n&&jl(gx[o],"sham",!0)},Jfe=kn("match"),Qfe=Pe.TypeError,ede=kn("species"),tde=Le("".charAt),bN=Le("".charCodeAt),rde=Le("".slice),nde=function(e){return function(t,r){var n,o,i=xr(la(t)),a=Hv(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=bN(i,a))<55296||n>56319||a+1===u||(o=bN(i,a+1))<56320||o>57343?e?tde(i,a):n:e?rde(i,a,a+2):o-56320+(n-55296<<10)+65536}},ode=nde(!0),wN=function(e,t,r){return t+(r?ode(e,t).length:1)},ide=Pe.Array,ade=Math.max,EN=function(e,t,r){for(var n=Uv(e),o=Kd(t,n),i=Kd(r===void 0?n:r,n),a=ide(ade(i-o,0)),u=0;o<i;o++,u++)aN(a,u,e[o]);return a.length=u,a},ude=Pe.TypeError,vx=function(e,t){var r=e.exec;if(Cr(r)){var n=er(r,e,t);return n!==null&&On(n),n}if(sa(e)==="RegExp")return er(Xd,e,t);throw ude("RegExp#exec called on incompatible receiver")},Rl=Zj.UNSUPPORTED_Y,sde=Math.min,CN=[].push,lde=Le(/./.exec),Il=Le(CN),Zd=Le("".slice);yN("split",function(e,t,r){var n;return n="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(o,i){var a,u,s=xr(la(this)),l=i===void 0?4294967295:i>>>0;if(l===0)return[];if(o===void 0)return[s];if(!Co(a=o)||!((u=a[Jfe])!==void 0?u:sa(a)=="RegExp"))return er(t,s,o,l);for(var c,f,p,d=[],v=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(o.sticky?"y":""),m=0,g=new RegExp(o.source,v+"g");(c=er(Xd,g,s))&&!((f=g.lastIndex)>m&&(Il(d,Zd(s,m,c.index)),c.length>1&&c.index<s.length&&mN(CN,d,EN(c,1)),p=c[0].length,m=f,d.length>=l));)g.lastIndex===c.index&&g.lastIndex++;return m===s.length?!p&&lde(g,"")||Il(d,""):Il(d,Zd(s,m)),d.length>l?EN(d,0,l):d}:"0".split(void 0,0).length?function(o,i){return o===void 0&&i===0?[]:er(t,this,o,i)}:t,[function(o,i){var a=la(this),u=o==null?void 0:IC(o,e);return u?er(u,o,a,i):er(n,xr(a),o,i)},function(o,i){var a=On(this),u=xr(o),s=r(n,a,u,i,n!==t);if(s.done)return s.value;var l=(function(w,x){var A,S=On(w).constructor;return S===void 0||(A=On(S)[ede])==null?x:(function(B){if(sx(B))return B;throw Qfe(Tj(B)+" is not a constructor")})(A)})(a,RegExp),c=a.unicode,f=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(Rl?"g":"y"),p=new l(Rl?"^(?:"+a.source+")":a,f),d=i===void 0?4294967295:i>>>0;if(d===0)return[];if(u.length===0)return vx(p,u)===null?[u]:[];for(var v=0,m=0,g=[];m<u.length;){p.lastIndex=Rl?0:m;var y,h=vx(p,Rl?Zd(u,m):u);if(h===null||(y=sde($C(p.lastIndex+(Rl?m:0)),u.length))===v)m=wN(u,m,c);else{if(Il(g,Zd(u,v,m)),g.length===d)return g;for(var b=1;b<=h.length-1;b++)if(Il(g,h[b]),g.length===d)return g;m=v=y}}return Il(g,Zd(u,v)),g}]},!!Kt(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Rl);var mx=`
67
+ \v\f\r                 \u2028\u2029\uFEFF`,xN=Le("".replace),Jv="["+mx+"]",cde=RegExp("^"+Jv+Jv+"*"),fde=RegExp(Jv+Jv+"*$"),dde=function(e){return function(t){var r=xr(la(t));return 1&e&&(r=xN(r,cde,"")),2&e&&(r=xN(r,fde,"")),r}},pde={trim:dde(3)},hde=XC.PROPER,gde=pde.trim;function DN(e){return e.length?e[0].tagName.toLowerCase():""}fa({target:"String",proto:!0,forced:(function(e){return Kt(function(){return!!mx[e]()||"​…᠎"[e]()!=="​…᠎"||hde&&mx[e].name!==e})})("trim")},{trim:function(){return gde(this)}}),fa({global:!0},{globalThis:Pe}),gn&&(T.fn.append=gn),uo&&(T.fn.on=uo),ki&&(T.fn.focus=ki),hn&&(T.fn.attr=hn),ao&&(T.fn.val=ao),Ai&&(T.fn.html=Ai),Fs&&(T.fn.dataset=Fs),ks&&(T.fn.addClass=ks),Os&&(T.fn.removeClass=Os),js&&(T.fn.children=js),bg&&(T.fn.each=bg),Ps&&(T.fn.find=Ps);var Jd=!1,SN=0,AN=0,Qd=null,ep=null,tp=T("body");function kN(e){Jd=!1,ep=null,Qd=null,tp.off("mousemove",ON),tp.off("mouseup",kN)}tp.on("mousedown",function(e){var t=e.target;if((t.tagName==="TH"||t.tagName==="TD")&&t.style.cursor==="col-resize"){t.style.cursor="auto",e.preventDefault(),Jd=!0;var r=e.clientX;SN=r;var n=t.getBoundingClientRect().width;AN=n,tp.on("mousemove",ON),tp.on("mouseup",kN)}});var ON=tu(function(e){if(Jd&&ep!=null&&Qd!=null){e.preventDefault();var t=e.clientX,r=AN+(t-SN);(r=Math.floor(100*r)/100)<30&&(r=30),V.setNodes(ep,{width:r.toString()},{at:Qd})}},100),vde={type:"table",renderElem:function(e,t,r){var n=(function(u,s){if(u.isDisabled())return!1;var l=u.selection;if(l==null||X.isCollapsed(l))return!0;var c=l.anchor,f=l.focus,p=_.findPath(u,s),d=D.start(u,p),v=D.end(u,p),m=_e.compare(c,v)<=0&&_e.compare(c,d)>=0,g=_e.compare(f,v)<=0&&_e.compare(f,d)>=0;return!!(m&&g&&M.equals(c.path.slice(0,3),f.path.slice(0,3)))})(r,e),o=e.width,i=o===void 0?"auto":o,a=Ee("div",{className:"table-container","data-selected":_.isNodeSelected(r,e),on:{mousedown:function(u){if(u.target.tagName==="DIV"&&u.preventDefault(),!r.isDisabled()){var s=_.findPath(r,e),l=D.start(r,s),c=r.selection;c!=null?c.anchor.path[0]!==s[0]&&r.select(l):r.select(l)}}}},Ee("table",{width:i,contentEditable:n},Ee("colgroup",null,Zv(e).map(function(u){var s=u.width;return Ee("col",{width:s===void 0?"auto":s})})),Ee("tbody",null,t)));return a}},mde={type:"table-row",renderElem:function(e,t,r){return Ee("tr",null,t)}},yde={type:"table-cell",renderElem:function(e,t,r){var n=(function(p,d){var v=_.getParentNode(p,d);if(v==null)return!1;var m=_.getParentNode(p,v);return m!=null&&Zv(m).some(function(g){return g===d})})(r,e),o=e,i=o.colSpan,a=i===void 0?1:i,u=o.rowSpan,s=u===void 0?1:u,l=o.isHeader,c=l!==void 0&&l;if(!n)return Ee("td",{colSpan:a,rowSpan:s},t);var f=Ee(c?"th":"td",{colSpan:a,rowSpan:s,style:{borderRightWidth:"3px"},on:{mousemove:tu(function(p){var d=this.elm;if(d!=null){var v=d.getBoundingClientRect(),m=v.left,g=v.width,y=v.top,h=v.height,b=p.clientX,w=p.clientY;Jd||(b>m+g-5&&b<m+g&&w>y&&w<y+h?(d.style.cursor="col-resize",ep=r,Qd=_.findPath(r,e)):Jd||(d.style.cursor="auto",ep=null,Qd=null))}},100)}},t);return f}},bde={selector:"table",preParseHtml:function(e){var t=T(e);if(DN(t)!=="table")return e;var r=t.find("tbody");if(r.length===0)return e;var n=t.find("tr");return t.append(n),r.remove(),t[0]}},wde=$v.filter;fa({target:"Array",proto:!0,forced:!lx("filter")},{filter:function(e){return wde(this,e,arguments.length>1?arguments[1]:void 0)}});var Ede=Math.floor,yx=Le("".charAt),Cde=Le("".replace),bx=Le("".slice),xde=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Dde=/\$([$&'`]|\d{1,2})/g,Sde=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,s=Dde;return o!==void 0&&(o=zC(o),s=xde),Cde(i,s,function(l,c){var f;switch(yx(c,0)){case"$":return"$";case"&":return e;case"`":return bx(t,0,r);case"'":return bx(t,a);case"<":f=o[bx(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Ede(p/10);return d===0?l:d<=u?n[d-1]===void 0?yx(c,1):n[d-1]+yx(c,1):l}f=n[p-1]}return f===void 0?"":f})},wx=kn("replace"),Ade=Math.max,kde=Math.min,Ode=Le([].concat),Ex=Le([].push),BN=Le("".indexOf),FN=Le("".slice),Bde="a".replace(/./,"$0")==="$0",_N=!!/./[wx]&&/./[wx]("a","$0")==="";yN("replace",function(e,t,r){var n=_N?"$":"$0";return[function(o,i){var a=la(this),u=o==null?void 0:IC(o,wx);return u?er(u,o,a,i):er(t,xr(a),o,i)},function(o,i){var a=On(this),u=xr(o);if(typeof i=="string"&&BN(i,n)===-1&&BN(i,"$<")===-1){var s=r(t,a,u,i);if(s.done)return s.value}var l=Cr(i);l||(i=xr(i));var c=a.global;if(c){var f=a.unicode;a.lastIndex=0}for(var p=[];;){var d=vx(a,u);if(d===null||(Ex(p,d),!c))break;xr(d[0])===""&&(a.lastIndex=wN(u,$C(a.lastIndex),f))}for(var v,m="",g=0,y=0;y<p.length;y++){for(var h=xr((d=p[y])[0]),b=Ade(kde(Hv(d.index),u.length),0),w=[],x=1;x<d.length;x++)Ex(w,(v=d[x])===void 0?v:String(v));var A=d.groups;if(l){var S=Ode([h],w,b,u);A!==void 0&&Ex(S,A);var B=xr(mN(i,void 0,S))}else B=Sde(h,u,b,w,A,i);b>=g&&(m+=FN(u,g,b)+B,g=b+h.length)}return m+FN(u,g)}]},!!Kt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!Bde||_N);var Fde={selector:"td:not([data-w-e-type]),th:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=T(e);(t=t.filter(function(u){return!!le.isText(u)||!!r.isInline(u)})).length===0&&(t=[{text:n.text().replace(/\s+/gm," ")}]);var o=parseInt(n.attr("colSpan")||"1"),i=parseInt(n.attr("rowSpan")||"1"),a=n.attr("width")||"auto";return{type:"table-cell",isHeader:DN(n)==="th",colSpan:o,rowSpan:i,width:a,children:t}}},_de={selector:"tr:not([data-w-e-type])",parseElemHtml:function(e,t,r){return{type:"table-row",children:t.filter(function(n){return _.getNodeType(n)==="table-cell"})}}},Tde={selector:"table:not([data-w-e-type])",parseElemHtml:function(e,t,r){var n=T(e),o="auto";return(function(i,a){for(var u="",s=(i.attr("style")||"").split(";"),l=s.length,c=0;c<l;c++){var f=s[c];if(f){var p=f.split(":");p[0].trim()==="width"&&(u=p[1].trim())}}return u})(n)==="100%"&&(o="100%"),n.attr("width")==="100%"&&(o="100%"),{type:"table",width:o,children:t.filter(function(i){return _.getNodeType(i)==="table-row"})}}},Pde=(function(){function e(){this.title=ie("tableModule.insertTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M0 64v896h1024V64H0z m384 576v-192h256v192h-256z m256 64v192h-256v-192h256z m0-512v192h-256V192h256zM320 192v192H64V192h256z m-256 256h256v192H64v-192z m640 0h256v192h-256v-192z m0-64V192h256v192h-256zM64 704h256v192H64v-192z m640 192v-192h256v192h-256z"></path></svg>',this.tag="button",this.showDropPanel=!0,this.$content=null}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!X.isCollapsed(r)||!!_.getSelectedElems(t).some(function(n){var o=_.getNodeType(n);return o==="pre"||o==="table"||o==="list-item"||!!t.isVoid(n)})},e.prototype.getPanelContentElem=function(t){var r=this;if(this.$content)return this.$content[0];for(var n=T('<div class="w-e-panel-content-table"></div>'),o=T("<span>0 &times; 0</span>"),i=T("<table></table>"),a=0;a<10;a++){for(var u=T("<tr></tr>"),s=0;s<10;s++){var l=T("<td></td>");l.attr("data-x",s.toString()),l.attr("data-y",a.toString()),u.append(l),l.on("mouseenter",function(c){var f=c.target;if(f!=null){var p=T(f).dataset(),d=p.x,v=p.y;o[0].innerHTML=d+1+" &times; "+(v+1),i.children().each(function(m){T(m).children().each(function(g){var y=T(g),h=y.dataset(),b=h.x,w=h.y;b<=d&&w<=v?y.addClass("active"):y.removeClass("active")})})}}),l.on("click",function(c){c.preventDefault();var f=c.target;if(f!=null){var p=T(f).dataset(),d=p.x,v=p.y;r.insertTable(t,v+1,d+1)}})}i.append(u)}return n.append(i),n.append(o),this.$content=n,n[0]},e.prototype.insertTable=function(t,r,n){var o=parseInt(r,10),i=parseInt(n,10);if(o&&i&&!(o<=0||i<=0)){_.isSelectedEmptyParagraph(t)&&V.removeNodes(t,{mode:"highest"});var a=(function(u,s){for(var l=[],c=0;c<u;c++){for(var f=[],p=0;p<s;p++){var d={type:"table-cell",children:[{text:""}]};c===0&&(d.isHeader=!0),f.push(d)}l.push({type:"table-row",children:f})}return{type:"table",width:"auto",children:l}})(o,i);V.insertNodes(t,a,{mode:"highest"})}},e})(),jde=(function(){function e(){this.title=ie("tableModule.deleteTable"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M826.8032 356.5312c-19.328 0-36.3776 15.6928-36.3776 35.0464v524.2624c0 19.328-16 34.56-35.328 34.56H264.9344c-19.328 0-35.5072-15.3088-35.5072-34.56V390.0416c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.6928-33.5104 35.0464V915.712c0 57.9328 44.6208 108.288 102.528 108.288H755.2c57.9328 0 108.0832-50.4576 108.0832-108.288V391.4752c-0.1024-19.2512-17.1264-34.944-36.48-34.944z" p-id="9577"></path><path d="M437.1712 775.7568V390.6048c0-19.328-14.1568-35.0464-33.5104-35.0464s-33.5104 15.616-33.5104 35.0464v385.152c0 19.328 14.1568 35.0464 33.5104 35.0464s33.5104-15.7184 33.5104-35.0464zM649.7024 775.7568V390.6048c0-19.328-17.0496-35.0464-36.3776-35.0464s-36.3776 15.616-36.3776 35.0464v385.152c0 19.328 17.0496 35.0464 36.3776 35.0464s36.3776-15.7184 36.3776-35.0464zM965.0432 217.0368h-174.6176V145.5104c0-57.9328-47.2064-101.76-104.6528-101.76h-350.976c-57.8304 0-105.3952 43.8528-105.3952 101.76v71.5264H54.784c-19.4304 0-35.0464 14.1568-35.0464 33.5104 0 19.328 15.616 33.5104 35.0464 33.5104h910.3616c19.328 0 35.0464-14.1568 35.0464-33.5104 0-19.3536-15.6928-33.5104-35.1488-33.5104z m-247.3728 0H297.3952V145.5104c0-19.328 18.2016-34.7648 37.4272-34.7648h350.976c19.1488 0 31.872 15.1296 31.872 34.7648v71.5264z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return t.selection==null||_.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){this.isDisabled(t)||V.removeNodes(t,{mode:"highest"})},e})(),Nde=(function(){function e(){this.title=ie("tableModule.insertRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M707.7888 521.0112h-147.456v-147.456H488.2432v147.456h-147.456v68.8128h147.456v147.456h72.0896v-147.456h147.456zM0 917.504V0h1048.576v917.504H0zM327.68 65.536H65.536v196.608H327.68V65.536z m327.68 0H393.216v196.608h262.144V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 258.8672H65.536v462.0288H983.04V324.4032z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!X.isCollapsed(r)||_.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=Kn(D.nodes(t,{match:function(d){return _.checkNodeType(d,"table-cell")},universal:!0}),1),o=Kn(n[0],2),i=o[0],a=o[1],u=_.getParentNode(t,i),s=u?.children.length||0;if(s!==0){for(var l={type:"table-row",children:[]},c=0;c<s;c++)l.children.push({type:"table-cell",children:[{text:""}]});var f=M.parent(a),p=M.next(f);V.insertNodes(t,l,{at:p})}}},e})(),Rde=(function(){function e(){this.title=ie("tableModule.deleteRow"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M907.6736 586.5472L747.1104 425.984l163.84-163.84-78.6432-78.6432-163.84 163.84L507.904 186.7776 429.2608 262.144l163.84 163.84-167.1168 167.1168 78.6432 78.6432 167.1168-167.1168 160.5632 160.5632 75.3664-78.6432zM0 917.504V0h1048.576v917.504H0z m983.04-327.68h-22.9376l-65.536-65.536H983.04V327.68h-91.7504l65.536-65.536h26.2144V65.536H65.536v196.608h317.8496l65.536 65.536H65.536v196.608h380.1088l-65.536 65.536H65.536v196.608H983.04v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!X.isCollapsed(r)||_.getSelectedNodeByType(t,"table-row")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=Kn(D.nodes(t,{match:function(s){return _.checkNodeType(s,"table-row")},universal:!0}),1),o=Kn(n[0],2),i=o[0],a=o[1],u=_.getParentNode(t,i);(u?.children.length||0)<=1?V.removeNodes(t,{mode:"highest"}):V.removeNodes(t,{at:a})}},e})(),TN={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Cx=UC("span").classList,PN=Cx&&Cx.constructor&&Cx.constructor.prototype,Ide=PN===Object.prototype?void 0:PN,Lde=$v.forEach,Mde=(function(e,t){var r=[].forEach;return!!r&&Kt(function(){r.call(null,function(){throw 1},1)})})(),xx=Mde?[].forEach:function(e){return Lde(this,e,arguments.length>1?arguments[1]:void 0)},jN=function(e){if(e&&e.forEach!==xx)try{jl(e,"forEach",xx)}catch{e.forEach=xx}};for(var Dx in TN)TN[Dx]&&jN(Pe[Dx]&&Pe[Dx].prototype);jN(Ide);var zde=(function(){function e(){this.title=ie("tableModule.insertCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 193.3312v186.7776H140.9024v91.7504H327.68v186.7776h88.4736V471.8592h190.0544V380.1088H416.1536V193.3312zM0 917.504V0h1048.576v917.504H0zM655.36 65.536H65.536v720.896H655.36V65.536z m327.68 0h-262.144v196.608h262.144V65.536z m0 262.144h-262.144v196.608h262.144V327.68z m0 262.144h-262.144v196.608h262.144v-196.608z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!X.isCollapsed(r)||_.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=Kn(D.nodes(t,{match:function(l){return _.checkNodeType(l,"table-cell")},universal:!0}),1),o=Kn(n[0],2),i=o[0],a=o[1],u=_.getParentNode(t,i);if(u!=null){var s=_.getParentNode(t,u);s!=null&&(s.children||[]).forEach(function(l,c){ge.isElement(l)&&(l.children||[]).forEach(function(f){var p=_.findPath(t,f);if(p.length===a.length&&wj(p.slice(-1),a.slice(-1))){var d={type:"table-cell",children:[{text:""}]};c===0&&dN(s)&&(d.isHeader=!0),V.insertNodes(t,d,{at:p})}})})}}},e})(),Vde=(function(){function e(){this.title=ie("tableModule.deleteCol"),this.iconSvg='<svg viewBox="0 0 1048 1024"><path d="M327.68 510.976L393.216 445.44v-13.1072L327.68 366.7968V510.976z m327.68-78.4384l65.536-65.536V507.904L655.36 442.368v-9.8304z m393.216 484.9664V0H0v917.504h1048.576z m-65.536-131.072h-262.144v-52.4288l-13.1072 13.1072-52.4288-52.4288v91.7504H393.216v-91.7504l-52.4288 52.4288-13.1072-13.1072v52.4288H65.536V65.536H327.68v121.2416l36.0448-36.0448 29.4912 29.4912V62.2592h262.144V180.224l49.152-49.152 16.384 16.384V62.2592h262.144V786.432z m-294.912-108.1344l-160.5632-160.5632-167.1168 167.1168-78.6432-78.6432 167.1168-167.1168L288.3584 278.528l78.6432-78.6432 160.5632 160.5632 163.84-163.84 78.6432 78.6432-163.84 163.84 160.5632 160.5632-78.6432 78.6432z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!X.isCollapsed(r)||_.getSelectedNodeByType(t,"table-cell")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=Kn(D.nodes(t,{match:function(c){return _.checkNodeType(c,"table-cell")},universal:!0}),1),o=Kn(n[0],2),i=o[0],a=o[1],u=_.getParentNode(t,i),s=u?.children.length||0;if(!u||s<=1)V.removeNodes(t,{mode:"highest"});else{var l=_.getParentNode(t,u);l!=null&&(l.children||[]).forEach(function(c){ge.isElement(c)&&(c.children||[]).forEach(function(f){var p=_.findPath(t,f);p.length===a.length&&wj(p.slice(-1),a.slice(-1))&&V.removeNodes(t,{at:p})})})}}},e})(),Hde=(function(){function e(){this.title=ie("tableModule.header"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M704 128l-64 0L384 128 320 128 0 128l0 256 0 64 0 192 0 64 0 256 320 0 64 0 256 0 64 0 320 0 0-256 0-64L1024 448 1024 384 1024 128 704 128zM640 640 384 640 384 448l256 0L640 640zM64 448l256 0 0 192L64 640 64 448zM320 896 64 896l0-192 256 0L320 896zM640 896 384 896l0-192 256 0L640 896zM960 896l-256 0 0-192 256 0L960 896zM960 640l-256 0L704 448l256 0L960 640z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var r=_.getSelectedNodeByType(t,"table");return r!=null&&dN(r)},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!X.isCollapsed(r)||_.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n=!r,o=_.getSelectedNodeByType(t,"table");o!=null&&Zv(o).forEach(function(i){return V.setNodes(t,{isHeader:n},{at:_.findPath(t,i)})})}},e})(),Ude=(function(){function e(){this.title=ie("tableModule.widthAuto"),this.iconSvg='<svg viewBox="0 0 1228 1024"><path d="M862.514337 563.200461H404.581995v121.753478a13.311987 13.311987 0 0 1-6.655993 11.468789 10.23999 10.23999 0 0 1-12.083188-1.433599l-204.799795-179.199821a13.721586 13.721586 0 0 1 0-20.479979l204.799795-179.302221a10.23999 10.23999 0 0 1 12.185588-1.535998 13.209587 13.209587 0 0 1 6.553593 11.673588v115.097485h457.932342V319.693504a11.571188 11.571188 0 0 1 18.841582-10.239989l204.799795 179.19982a13.721586 13.721586 0 0 1 0 20.47998l-204.799795 179.199821a10.23999 10.23999 0 0 1-12.185588 1.535998 13.311987 13.311987 0 0 1-6.655994-11.571188V563.200461zM136.499064 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785H15.155185A15.155185 15.155185 0 0 1 0 1008.844815V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086294a15.155185 15.155185 0 0 1 15.257585 15.155185zM1228.798771 14.951409v993.893406a15.257585 15.257585 0 0 1-15.155185 15.052785h-106.188693a15.155185 15.155185 0 0 1-15.155185-15.052785V14.951409a15.257585 15.257585 0 0 1 15.155185-15.052785h106.086293A15.155185 15.155185 0 0 1 1228.798771 15.053809z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){var r=_.getSelectedNodeByType(t,"table");return r!=null&&r.width==="100%"},e.prototype.isActive=function(t){return!!this.getValue(t)},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!X.isCollapsed(r)||_.getSelectedNodeByType(t,"table")==null},e.prototype.exec=function(t,r){if(!this.isDisabled(t)){var n={width:r?"auto":"100%"};V.setNodes(t,n,{mode:"highest"})}},e})(),qde={renderElems:[vde,mde,yde],elemsToHtml:[{type:"table",elemToHtml:function(e,t){var r=e.width;return'<table style="width: '+(r===void 0?"auto":r)+';"><tbody>'+t+"</tbody></table>"}},{type:"table-row",elemToHtml:function(e,t){return"<tr>"+t+"</tr>"}},{type:"table-cell",elemToHtml:function(e,t){var r=e,n=r.colSpan,o=n===void 0?1:n,i=r.rowSpan,a=i===void 0?1:i,u=r.isHeader,s=u!==void 0&&u,l=r.width,c=s?"th":"td";return"<"+c+' colSpan="'+o+'" rowSpan="'+a+'" width="'+(l===void 0?"auto":l)+'">'+t+"</"+c+">"}}],preParseHtml:[bde],parseElemsHtml:[Fde,_de,Tde],menus:[{key:"insertTable",factory:function(){return new Pde}},{key:"deleteTable",factory:function(){return new jde}},{key:"insertTableRow",factory:function(){return new Nde}},{key:"deleteTableRow",factory:function(){return new Rde}},{key:"insertTableCol",factory:function(){return new zde}},{key:"deleteTableCol",factory:function(){return new Vde}},{key:"tableHeader",factory:function(){return new Hde}},{key:"tableFullWidth",factory:function(){return new Ude}}],editorPlugin:function(e){var t=e.insertBreak,r=e.deleteBackward,n=e.deleteForward,o=e.normalizeNode,i=e.insertData,a=e.handleTab,u=e.selectAll,s=e;return s.insertBreak=function(){_.getSelectedNodeByType(s,"table")==null?t():s.insertText(`
68
+ `)},s.deleteBackward=function(l){if(!uN(s)){var c=s.selection;if(c){var f=D.before(s,c);if(f){var p=sN(s,f),d=sN(s,c);if(p&&!d)return}}r(l)}},s.handleTab=function(){var l;if(_.getSelectedNodeByType(s,"table")){var c=D.above(e);_.checkNodeType(c[0],"table-cell")&&V.select(e,c[1]);var f=D.next(e);if(f)f[0]&&f[0].text&&(f=(l=D.above(e,{at:f[1]}))!==null&&l!==void 0?l:f),V.select(e,f[1]);else{var p=s.children||[],d=p.length;if(_.checkNodeType(p[d-1],"table")){var v=_.genEmptyParagraph();V.insertNodes(s,v,{at:[d]}),s.handleTab()}}}else a()},s.deleteForward=function(l){uN(s)||n(l)},s.normalizeNode=function(l){var c=Kn(l,2),f=c[0],p=c[1];if(_.getNodeType(f)!=="table")return o([f,p]);if(_.isLastNode(s,f)){var d=_.genEmptyParagraph();V.insertNodes(s,d,{at:[p[0]+1]})}},s.insertData=function(l){if(_.getSelectedNodeByType(s,"table")!=null){var c=l.getData("text/plain");c===`
69
+ `||/<img[^>]+>/.test(l.getData("text/html"))?i(l):D.insertText(s,c)}else i(l)},s.selectAll=function(){var l=s.selection;if(l!=null){var c=_.getSelectedNodeByType(s,"table-cell");if(c!=null){var f=l.anchor,p=l.focus;if(M.equals(f.path.slice(0,3),p.path.slice(0,3)))if(oe.string(c).length!==0){var d=_.findPath(s,c),v={anchor:D.start(s,d),focus:D.end(s,d)};s.select(v)}else u();else u()}else u()}else u()},s}};Vr("en",{videoModule:{delete:"Delete",uploadVideo:"Upload video",insertVideo:"Insert video",videoSrc:"Video source",videoSrcPlaceHolder:"Video file url, or third-party <iframe>",videoPoster:"Video poster",videoPosterPlaceHolder:"Poster image url",ok:"Ok",editSize:"Edit size",width:"Width",height:"Height"}}),Vr("zh-CN",{videoModule:{delete:"删除视频",uploadVideo:"上传视频",insertVideo:"插入视频",videoSrc:"视频地址",videoSrcPlaceHolder:"视频文件 url 或第三方 <iframe>",videoPoster:"视频封面",videoPosterPlaceHolder:"封面图片 url",ok:"确定",editSize:"修改尺寸",width:"宽度",height:"高度"}});var Qv=function(){return Qv=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Qv.apply(this,arguments)};function em(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(e,[])).next())})}function tm(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return(function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([s,l])}}}function Wu(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(u){o={error:u}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function Wde(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=(function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")})(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(o){t[o]=e[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(p){s({value:p,done:c})},l)})(a,u,(i=e[o](i)).done,i.value)})}}}var NN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Sx(e){var t={exports:{}};return e(t,t.exports),t.exports}var da,rm,nm=function(e){return e&&e.Math==Math&&e},ue=nm(typeof globalThis=="object"&&globalThis)||nm(typeof window=="object"&&window)||nm(typeof self=="object"&&self)||nm(typeof NN=="object"&&NN)||(function(){return this})()||Function("return this")(),lt=function(e){try{return!!e()}catch{return!0}},xo=!lt(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),rp=Function.prototype.call,ct=rp.bind?rp.bind(rp):function(){return rp.apply(rp,arguments)},RN={}.propertyIsEnumerable,IN=Object.getOwnPropertyDescriptor,Gde={f:IN&&!RN.call({1:2},1)?function(e){var t=IN(this,e);return!!t&&t.enumerable}:RN},om=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},LN=Function.prototype,Ax=LN.bind,kx=LN.call,Kde=Ax&&Ax.bind(kx),Ae=Ax?function(e){return e&&Kde(kx,e)}:function(e){return e&&function(){return kx.apply(e,arguments)}},Yde=Ae({}.toString),Xde=Ae("".slice),Do=function(e){return Xde(Yde(e),8,-1)},Ox=ue.Object,$de=Ae("".split),Bx=lt(function(){return!Ox("z").propertyIsEnumerable(0)})?function(e){return Do(e)=="String"?$de(e,""):Ox(e)}:Ox,Zde=ue.TypeError,np=function(e){if(e==null)throw Zde("Can't call method on "+e);return e},pa=function(e){return Bx(np(e))},it=function(e){return typeof e=="function"},yt=function(e){return typeof e=="object"?e!==null:it(e)},Jde=function(e){return it(e)?e:void 0},Gu=function(e,t){return arguments.length<2?Jde(ue[e]):ue[e]&&ue[e][t]},op=Ae({}.isPrototypeOf),Ll=Gu("navigator","userAgent")||"",MN=ue.process,zN=ue.Deno,VN=MN&&MN.versions||zN&&zN.version,HN=VN&&VN.v8;HN&&(rm=(da=HN.split("."))[0]>0&&da[0]<4?1:+(da[0]+da[1])),!rm&&Ll&&(!(da=Ll.match(/Edge\/(\d+)/))||da[1]>=74)&&(da=Ll.match(/Chrome\/(\d+)/))&&(rm=+da[1]);var ip=rm,Fx=!!Object.getOwnPropertySymbols&&!lt(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ip&&ip<41}),_x=Fx&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Qde=ue.Object,Tx=_x?function(e){return typeof e=="symbol"}:function(e){var t=Gu("Symbol");return it(t)&&op(t.prototype,Qde(e))},epe=ue.String,im=function(e){try{return epe(e)}catch{return"Object"}},tpe=ue.TypeError,ha=function(e){if(it(e))return e;throw tpe(im(e)+" is not a function")},ap=function(e,t){var r=e[t];return r==null?void 0:ha(r)},rpe=ue.TypeError,npe=Object.defineProperty,Px=function(e,t){try{npe(ue,e,{value:t,configurable:!0,writable:!0})}catch{ue[e]=t}return t},ga=ue["__core-js_shared__"]||Px("__core-js_shared__",{}),jx=Sx(function(e){(e.exports=function(t,r){return ga[t]||(ga[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),ope=ue.Object,am=function(e){return ope(np(e))},ipe=Ae({}.hasOwnProperty),Yt=Object.hasOwn||function(e,t){return ipe(am(e),t)},ape=0,upe=Math.random(),spe=Ae(1 .toString),Nx=function(e){return"Symbol("+(e===void 0?"":e)+")_"+spe(++ape+upe,36)},up=jx("wks"),Ku=ue.Symbol,UN=Ku&&Ku.for,lpe=_x?Ku:Ku&&Ku.withoutSetter||Nx,Lt=function(e){if(!Yt(up,e)||!Fx&&typeof up[e]!="string"){var t="Symbol."+e;Fx&&Yt(Ku,e)?up[e]=Ku[e]:up[e]=_x&&UN?UN(t):lpe(t)}return up[e]},cpe=ue.TypeError,fpe=Lt("toPrimitive"),Rx=function(e){var t=(function(r,n){if(!yt(r)||Tx(r))return r;var o,i=ap(r,fpe);if(i){if(o=ct(i,r,n),!yt(o)||Tx(o))return o;throw cpe("Can't convert object to primitive value")}return(function(a,u){var s,l;if(it(s=a.toString)&&!yt(l=ct(s,a))||it(s=a.valueOf)&&!yt(l=ct(s,a)))return l;throw rpe("Can't convert object to primitive value")})(r)})(e,"string");return Tx(t)?t:t+""},Ix=ue.document,dpe=yt(Ix)&&yt(Ix.createElement),sp=function(e){return dpe?Ix.createElement(e):{}},qN=!xo&&!lt(function(){return Object.defineProperty(sp("div"),"a",{get:function(){return 7}}).a!=7}),WN=Object.getOwnPropertyDescriptor,Lx={f:xo?WN:function(e,t){if(e=pa(e),t=Rx(t),qN)try{return WN(e,t)}catch{}if(Yt(e,t))return om(!ct(Gde.f,e,t),e[t])}},ppe=ue.String,hpe=ue.TypeError,ir=function(e){if(yt(e))return e;throw hpe(ppe(e)+" is not an object")},gpe=ue.TypeError,GN=Object.defineProperty,ri={f:xo?GN:function(e,t,r){if(ir(e),t=Rx(t),ir(r),qN)try{return GN(e,t,r)}catch{}if("get"in r||"set"in r)throw gpe("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},va=xo?function(e,t,r){return ri.f(e,t,om(1,r))}:function(e,t,r){return e[t]=r,e},vpe=Ae(Function.toString);it(ga.inspectSource)||(ga.inspectSource=function(e){return vpe(e)});var um,lp,sm,lm=ga.inspectSource,KN=ue.WeakMap,YN=it(KN)&&/native code/.test(lm(KN)),XN=jx("keys"),Mx=function(e){return XN[e]||(XN[e]=Nx(e))},cm={},zx=ue.TypeError,mpe=ue.WeakMap;if(YN||ga.state){var Yu=ga.state||(ga.state=new mpe),ype=Ae(Yu.get),$N=Ae(Yu.has),bpe=Ae(Yu.set);um=function(e,t){if($N(Yu,e))throw new zx("Object already initialized");return t.facade=e,bpe(Yu,e,t),t},lp=function(e){return ype(Yu,e)||{}},sm=function(e){return $N(Yu,e)}}else{var Ml=Mx("state");cm[Ml]=!0,um=function(e,t){if(Yt(e,Ml))throw new zx("Object already initialized");return t.facade=e,va(e,Ml,t),t},lp=function(e){return Yt(e,Ml)?e[Ml]:{}},sm=function(e){return Yt(e,Ml)}}var ln={set:um,get:lp,has:sm,enforce:function(e){return sm(e)?lp(e):um(e,{})},getterFor:function(e){return function(t){var r;if(!yt(t)||(r=lp(t)).type!==e)throw zx("Incompatible receiver, "+e+" required");return r}}},ZN=Function.prototype,wpe=xo&&Object.getOwnPropertyDescriptor,Vx=Yt(ZN,"name"),zl={EXISTS:Vx,PROPER:Vx&&(function(){}).name==="something",CONFIGURABLE:Vx&&(!xo||xo&&wpe(ZN,"name").configurable)},Bn=Sx(function(e){var t=zl.CONFIGURABLE,r=ln.get,n=ln.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;it(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Yt(u,"name")||t&&u.name!==d)&&va(u,"name",d),(l=n(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==ue?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:va(i,a,u)):f?i[a]=u:Px(a,u)})(Function.prototype,"toString",function(){return it(this)&&r(this).source||lm(this)})}),Epe=Math.ceil,Cpe=Math.floor,fm=function(e){var t=+e;return t!=t||t===0?0:(t>0?Cpe:Epe)(t)},xpe=Math.max,Dpe=Math.min,cp=function(e,t){var r=fm(e);return r<0?xpe(r+t,0):Dpe(r,t)},Spe=Math.min,JN=function(e){return e>0?Spe(fm(e),9007199254740991):0},fp=function(e){return JN(e.length)},QN=function(e){return function(t,r,n){var o,i=pa(t),a=fp(i),u=cp(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},eR={includes:QN(!0),indexOf:QN(!1)},Ape=eR.indexOf,tR=Ae([].push),rR=function(e,t){var r,n=pa(e),o=0,i=[];for(r in n)!Yt(cm,r)&&Yt(n,r)&&tR(i,r);for(;t.length>o;)Yt(n,r=t[o++])&&(~Ape(i,r)||tR(i,r));return i},dm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],kpe=dm.concat("length","prototype"),pm={f:Object.getOwnPropertyNames||function(e){return rR(e,kpe)}},Ope={f:Object.getOwnPropertySymbols},Bpe=Ae([].concat),Fpe=Gu("Reflect","ownKeys")||function(e){var t=pm.f(ir(e)),r=Ope.f;return r?Bpe(t,r(e)):t},_pe=function(e,t){for(var r=Fpe(t),n=ri.f,o=Lx.f,i=0;i<r.length;i++){var a=r[i];Yt(e,a)||n(e,a,o(t,a))}},Tpe=/#|\.prototype\./,dp=function(e,t){var r=jpe[Ppe(e)];return r==Rpe||r!=Npe&&(it(t)?lt(t):!!t)},Ppe=dp.normalize=function(e){return String(e).replace(Tpe,".").toLowerCase()},jpe=dp.data={},Npe=dp.NATIVE="N",Rpe=dp.POLYFILL="P",hm=dp,Ipe=Lx.f,Wr=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?ue:l?ue[u]||Px(u,{}):(ue[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=Ipe(r,n))&&a.value:r[n],!hm(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;_pe(i,o)}(e.sham||o&&o.sham)&&va(i,"sham",!0),Bn(r,n,i,e)}},nR={};nR[Lt("toStringTag")]="z";var Hx=String(nR)==="[object z]",Lpe=Lt("toStringTag"),Mpe=ue.Object,zpe=Do((function(){return arguments})())=="Arguments",gm=Hx?Do:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=Mpe(e),Lpe))=="string"?r:zpe?Do(t):(n=Do(t))=="Object"&&it(t.callee)?"Arguments":n},Vpe=ue.String,Fn=function(e){if(gm(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Vpe(e)},Ux=`
70
+ \v\f\r                 \u2028\u2029\uFEFF`,oR=Ae("".replace),vm="["+Ux+"]",Hpe=RegExp("^"+vm+vm+"*"),Upe=RegExp(vm+vm+"*$"),qpe=function(e){return function(t){var r=Fn(np(t));return 1&e&&(r=oR(r,Hpe,"")),2&e&&(r=oR(r,Upe,"")),r}},Wpe={trim:qpe(3)},Gpe=zl.PROPER,Kpe=Wpe.trim;function iR(e){return e.length?e[0].tagName.toLowerCase():""}function aR(e,t,r){t===void 0&&(t="auto"),r===void 0&&(r="auto");var n=T(e);return n.attr("width",t),n.attr("height",r),n[0].outerHTML}Wr({target:"String",proto:!0,forced:lt(function(){return!!Ux.trim()||"​…᠎".trim()!=="​…᠎"||Gpe&&Ux.trim.name!=="trim"})},{trim:function(){return Kpe(this)}}),Wr({global:!0},{globalThis:ue}),gn&&(T.fn.append=gn),uo&&(T.fn.on=uo),ki&&(T.fn.focus=ki),hn&&(T.fn.attr=hn),ao&&(T.fn.val=ao),Ai&&(T.fn.html=Ai),Ts&&(T.fn.parent=Ts),Bs&&(T.fn.hasClass=Bs),Rs&&(T.fn.empty=Rs);var mm,Ype={type:"video",renderElem:function(e,t,r){var n,o=e,i=o.src,a=i===void 0?"":i,u=o.poster,s=u===void 0?"":u,l=o.width,c=l===void 0?"auto":l,f=o.height,p=f===void 0?"auto":f,d=_.isNodeSelected(r,e);if(a.trim().indexOf("<iframe ")===0)n=Ee("div",{className:"w-e-textarea-video-container","data-selected":d?"true":"",innerHTML:aR(a,c,p)});else{var v=Ee("video",{poster:s,controls:!0},Ee("source",{src:a,type:"video/mp4"}),`Sorry, your browser doesn't support embedded videos.
71
+ 抱歉,浏览器不支持 video 视频`);c!=="auto"&&(v.data.width=c),p!=="auto"&&(v.data.height=p),n=Ee("div",{className:"w-e-textarea-video-container","data-selected":d?"true":""},v)}return Is("div",{props:{contentEditable:!1},on:{mousedown:function(m){return m.preventDefault()}}},n)}},Xpe={type:"video",elemToHtml:function(e,t){var r=e,n=r.src,o=n===void 0?"":n,i=r.poster,a=i===void 0?"":i,u=r.width,s=u===void 0?"auto":u,l=r.height,c=l===void 0?"auto":l,f=`<div data-w-e-type="video" data-w-e-is-void>
72
+ `;return o.trim().indexOf("<iframe ")===0?f+=aR(o,s,c):f+='<video poster="'+a+'" controls="true" width="'+s+'" height="'+c+'"><source src="'+o+'" type="video/mp4"/></video>',f+`
73
+ </div>`}},$pe=Object.keys||function(e){return rR(e,dm)},Zpe=xo?Object.defineProperties:function(e,t){ir(e);for(var r,n=pa(t),o=$pe(t),i=o.length,a=0;i>a;)ri.f(e,r=o[a++],n[r]);return e},qx=Gu("document","documentElement"),uR=Mx("IE_PROTO"),Wx=function(){},sR=function(e){return"<script>"+e+"<\/script>"},lR=function(e){e.write(sR("")),e.close();var t=e.parentWindow.Object;return e=null,t},ym=function(){try{mm=new ActiveXObject("htmlfile")}catch{}var e,t;ym=typeof document<"u"?document.domain&&mm?lR(mm):((t=sp("iframe")).style.display="none",qx.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(sR("document.F=Object")),e.close(),e.F):lR(mm);for(var r=dm.length;r--;)delete ym.prototype[dm[r]];return ym()};cm[uR]=!0;var Gx=Object.create||function(e,t){var r;return e!==null?(Wx.prototype=ir(e),r=new Wx,Wx.prototype=null,r[uR]=e):r=ym(),t===void 0?r:Zpe(r,t)},Kx=Lt("unscopables"),Yx=Array.prototype;Yx[Kx]==null&&ri.f(Yx,Kx,{configurable:!0,value:Gx(null)});var pp=function(e){Yx[Kx][e]=!0},Jpe=eR.includes;Wr({target:"Array",proto:!0},{includes:function(e){return Jpe(this,e,arguments.length>1?arguments[1]:void 0)}}),pp("includes");var Qpe={selector:"iframe,video,p",preParseHtml:function(e){var t=T(e),r=t;if(iR(t)==="p"){var n=t.children();if(n.length===1){var o=n[0],i=o.tagName.toLowerCase();["iframe","video"].includes(i)&&(r=T(o))}}var a=iR(r);if(a!=="iframe"&&a!=="video"||r.parent().attr("data-w-e-type")==="video")return r[0];var u=T('<div data-w-e-type="video" data-w-e-is-void></div>');return u.append(r),u[0]}},cR=Ae(Ae.bind),hp=function(e,t){return ha(e),t===void 0?e:cR?cR(e,t):function(){return e.apply(t,arguments)}},bm=Array.isArray||function(e){return Do(e)=="Array"},fR=function(){},ehe=[],dR=Gu("Reflect","construct"),Xx=/^\s*(?:class|function)\b/,the=Ae(Xx.exec),rhe=!Xx.exec(fR),gp=function(e){if(!it(e))return!1;try{return dR(fR,ehe,e),!0}catch{return!1}},$x=!dR||lt(function(){var e;return gp(gp.call)||!gp(Object)||!gp(function(){e=!0})||e})?function(e){if(!it(e))return!1;switch(gm(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return rhe||!!the(Xx,lm(e))}:gp,nhe=Lt("species"),pR=ue.Array,ohe=function(e,t){return new((function(r){var n;return bm(r)&&(n=r.constructor,($x(n)&&(n===pR||bm(n.prototype))||yt(n)&&(n=n[nhe])===null)&&(n=void 0)),n===void 0?pR:n})(e))(t===0?0:t)},hR=Ae([].push),gR=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,v=am(s),m=Bx(v),g=hp(l,c),y=fp(m),h=0,b=f||ohe,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(d=g(p=m[h],h,v),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:hR(w,p)}else switch(e){case 4:return!1;case 7:hR(w,p)}return i?-1:n||o?o:w}},Zx={find:gR(5),findIndex:gR(6)},ihe=Zx.find,vR=!0;"find"in[]&&Array(1).find(function(){vR=!1}),Wr({target:"Array",proto:!0,forced:vR},{find:function(e){return ihe(this,e,arguments.length>1?arguments[1]:void 0)}}),pp("find");var ahe=Hx?{}.toString:function(){return"[object "+gm(this)+"]"};function mR(e,t,r,n){return t===void 0&&(t=""),r===void 0&&(r="auto"),n===void 0&&(n="auto"),{type:"video",src:e,poster:t,width:r,height:n,children:[{text:""}]}}Hx||Bn(Object.prototype,"toString",ahe,{unsafe:!0});var yR,Jx,uhe={selector:'div[data-w-e-type="video"]',parseElemHtml:function(e,t,r){var n=T(e),o="",i="",a="auto",u="auto",s=n.find("iframe");if(s.length>0)return a=s.attr("width")||"auto",u=s.attr("height")||"auto",mR(o=s[0].outerHTML,i,a,u);var l=n.find("video");return(o=l.attr("src")||"")||l.length>0&&(o=l.find("source").attr("src")||""),a=l.attr("width")||"auto",u=l.attr("height")||"auto",mR(o,i=l.attr("poster")||"",a,u)}},bR=function(){var e=ir(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},Qx=ue.RegExp,wR=lt(function(){var e=Qx("a","y");return e.lastIndex=2,e.exec("abcd")!=null});wR||lt(function(){return!Qx("a","y").sticky});var she={BROKEN_CARET:wR||lt(function(){var e=Qx("^r","gy");return e.lastIndex=2,e.exec("str")!=null})},lhe=ue.RegExp,che=lt(function(){var e=lhe(".","s");return!(e.dotAll&&e.exec(`
74
+ `)&&e.flags==="s")}),fhe=ue.RegExp,dhe=lt(function(){var e=fhe("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),phe=ln.get,hhe=jx("native-string-replace",String.prototype.replace),wm=RegExp.prototype.exec,e5=wm,ghe=Ae("".charAt),vhe=Ae("".indexOf),mhe=Ae("".replace),t5=Ae("".slice),r5=(Jx=/b*/g,ct(wm,yR=/a/,"a"),ct(wm,Jx,"a"),yR.lastIndex!==0||Jx.lastIndex!==0),ER=she.BROKEN_CARET,n5=/()??/.exec("")[1]!==void 0;(r5||n5||ER||che||dhe)&&(e5=function(e){var t,r,n,o,i,a,u,s=this,l=phe(s),c=Fn(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=ct(e5,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=ER&&s.sticky,v=ct(bR,s),m=s.source,g=0,y=c;if(d&&(v=mhe(v,"y",""),vhe(v,"g")===-1&&(v+="g"),y=t5(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&ghe(c,s.lastIndex-1)!==`
75
+ `)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),n5&&(r=new RegExp("^"+m+"$(?!\\s)",v)),r5&&(n=s.lastIndex),o=ct(wm,d?r:s,y),d?o?(o.input=t5(o.input,g),o[0]=t5(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:r5&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),n5&&o&&o.length>1&&ct(hhe,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=Gx(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var Em=e5;Wr({target:"RegExp",proto:!0,forced:/./.exec!==Em},{exec:Em});var o5=Function.prototype,CR=o5.apply,yhe=o5.bind,xR=o5.call,DR=typeof Reflect=="object"&&Reflect.apply||(yhe?xR.bind(CR):function(){return xR.apply(CR,arguments)}),SR=(Lt("species"),RegExp.prototype),bhe=Ae("".charAt),AR=Ae("".charCodeAt),whe=Ae("".slice),Ehe=function(e){return function(t,r){var n,o,i=Fn(np(t)),a=fm(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=AR(i,a))<55296||n>56319||a+1===u||(o=AR(i,a+1))<56320||o>57343?e?bhe(i,a):n:e?whe(i,a,a+2):o-56320+(n-55296<<10)+65536}},kR={charAt:Ehe(!0)},Che=kR.charAt,xhe=function(e,t,r){return t+(r?Che(e,t).length:1)},Dhe=Math.floor,i5=Ae("".charAt),She=Ae("".replace),a5=Ae("".slice),Ahe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,khe=/\$([$&'`]|\d{1,2})/g,Ohe=function(e,t,r,n,o,i){var a=r+e.length,u=n.length,s=khe;return o!==void 0&&(o=am(o),s=Ahe),She(i,s,function(l,c){var f;switch(i5(c,0)){case"$":return"$";case"&":return e;case"`":return a5(t,0,r);case"'":return a5(t,a);case"<":f=o[a5(c,1,-1)];break;default:var p=+c;if(p===0)return l;if(p>u){var d=Dhe(p/10);return d===0?l:d<=u?n[d-1]===void 0?i5(c,1):n[d-1]+i5(c,1):l}f=n[p-1]}return f===void 0?"":f})},Bhe=ue.TypeError,Fhe=function(e,t){var r=e.exec;if(it(r)){var n=ct(r,e,t);return n!==null&&ir(n),n}if(Do(e)==="RegExp")return ct(Em,e,t);throw Bhe("RegExp#exec called on incompatible receiver")},u5=Lt("replace"),_he=Math.max,The=Math.min,Phe=Ae([].concat),s5=Ae([].push),OR=Ae("".indexOf),BR=Ae("".slice),jhe="a".replace(/./,"$0")==="$0",FR=!!/./[u5]&&/./[u5]("a","$0")==="";function _R(e){return e+"-"+x7()}(function(e,t,r,n){var o=Lt(e),i=!lt(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!lt(function(){var l=!1,c=/a/;return c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Ae(/./[o]),s=(function(l,c,f){var p=FR?"$":"$0";return[function(d,v){var m=np(this),g=d==null?void 0:ap(d,u5);return g?ct(g,d,m,v):ct(c,Fn(m),d,v)},function(d,v){var m=ir(this),g=Fn(d);if(typeof v=="string"&&OR(v,p)===-1&&OR(v,"$<")===-1){var y=f(c,m,g,v);if(y.done)return y.value}var h=it(v);h||(v=Fn(v));var b=m.global;if(b){var w=m.unicode;m.lastIndex=0}for(var x=[];;){var A=Fhe(m,g);if(A===null||(s5(x,A),!b))break;Fn(A[0])===""&&(m.lastIndex=xhe(g,JN(m.lastIndex),w))}for(var S,B="",P=0,H=0;H<x.length;H++){for(var U=Fn((A=x[H])[0]),W=_he(The(fm(A.index),g.length),0),C=[],z=1;z<A.length;z++)s5(C,(S=A[z])===void 0?S:String(S));var k=A.groups;if(h){var I=Phe([U],C,W,g);k!==void 0&&s5(I,k);var Y=Fn(DR(v,void 0,I))}else Y=Ohe(U,g,W,C,k,v);W>=P&&(B+=BR(g,P,W)+Y,P=W+U.length)}return B+BR(g,P)}]})(0,""[e],function(l,c,f,p,d){var v=Ae(l),m=c.exec;return m===Em||m===SR.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:v(f,c,p)}:{done:!1}});Bn(String.prototype,e,s[0]),Bn(SR,o,s[1])}})("replace",0,!!lt(function(){var e=/./;return e.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(e,"$<a>")!=="7"})||!jhe||FR);var Cm=ue.Promise,xm=function(e,t,r){for(var n in t)Bn(e,n,t[n],r);return e},Nhe=ue.String,Rhe=ue.TypeError,Vl=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=Ae(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return ir(n),(function(i){if(typeof i=="object"||it(i))return i;throw Rhe("Can't set "+Nhe(i)+" as a prototype")})(o),t?e(n,o):n.__proto__=o,n}})():void 0),Ihe=ri.f,TR=Lt("toStringTag"),Dm=function(e,t,r){e&&!Yt(e=r?e:e.prototype,TR)&&Ihe(e,TR,{configurable:!0,value:t})},PR=Lt("species"),Lhe=ue.TypeError,l5=function(e,t){if(op(t,e))return e;throw Lhe("Incorrect invocation")},Hl={},Mhe=Lt("iterator"),zhe=Array.prototype,Vhe=Lt("iterator"),jR=function(e){if(e!=null)return ap(e,Vhe)||ap(e,"@@iterator")||Hl[gm(e)]},Hhe=ue.TypeError,NR=function(e,t,r){var n,o;ir(e);try{if(!(n=ap(e,"return"))){if(t==="throw")throw r;return r}n=ct(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return ir(n),r},Uhe=ue.TypeError,Sm=function(e,t){this.stopped=e,this.result=t},RR=Sm.prototype,Am=function(e,t,r){var n,o,i,a,u,s,l,c,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),m=hp(t,f),g=function(h){return n&&NR(n,"normal",h),new Sm(!0,h)},y=function(h){return p?(ir(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(d)n=e;else{if(!(o=jR(e)))throw Uhe(im(e)+" is not iterable");if((c=o)!==void 0&&(Hl.Array===c||zhe[Mhe]===c)){for(i=0,a=fp(e);a>i;i++)if((u=y(e[i]))&&op(RR,u))return u;return new Sm(!1)}n=(function(h,b){var w=arguments.length<2?jR(h):b;if(ha(w))return ir(ct(w,h));throw Hhe(im(h)+" is not iterable")})(e,o)}for(s=n.next;!(l=ct(s,n)).done;){try{u=y(l.value)}catch(h){NR(n,"throw",h)}if(typeof u=="object"&&u&&op(RR,u))return u}return new Sm(!1)},IR=Lt("iterator"),LR=!1;try{var qhe=0,MR={next:function(){return{done:!!qhe++}},return:function(){LR=!0}};MR[IR]=function(){return this},Array.from(MR,function(){throw 2})}catch{}var vp,Ul,zR,c5,VR=function(e,t){if(!LR)return!1;var r=!1;try{var n={};n[IR]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},Whe=ue.TypeError,Ghe=Lt("species"),HR=Ae([].slice),UR=/(?:ipad|iphone|ipod).*applewebkit/i.test(Ll),ma=Do(ue.process)=="process",f5=ue.setImmediate,qR=ue.clearImmediate,Khe=ue.process,d5=ue.Dispatch,Yhe=ue.Function,WR=ue.MessageChannel,Xhe=ue.String,p5=0,mp={};try{vp=ue.location}catch{}var h5=function(e){if(Yt(mp,e)){var t=mp[e];delete mp[e],t()}},g5=function(e){return function(){h5(e)}},GR=function(e){h5(e.data)},KR=function(e){ue.postMessage(Xhe(e),vp.protocol+"//"+vp.host)};f5&&qR||(f5=function(e){var t=HR(arguments,1);return mp[++p5]=function(){DR(it(e)?e:Yhe(e),void 0,t)},Ul(p5),p5},qR=function(e){delete mp[e]},ma?Ul=function(e){Khe.nextTick(g5(e))}:d5&&d5.now?Ul=function(e){d5.now(g5(e))}:WR&&!UR?(c5=(zR=new WR).port2,zR.port1.onmessage=GR,Ul=hp(c5.postMessage,c5)):ue.addEventListener&&it(ue.postMessage)&&!ue.importScripts&&vp&&vp.protocol!=="file:"&&!lt(KR)?(Ul=KR,ue.addEventListener("message",GR,!1)):Ul="onreadystatechange"in sp("script")?function(e){qx.appendChild(sp("script")).onreadystatechange=function(){qx.removeChild(this),h5(e)}}:function(e){setTimeout(g5(e),0)});var yp,Xu,bp,ql,v5,m5,y5,YR,XR={set:f5},$he=/ipad|iphone|ipod/i.test(Ll)&&ue.Pebble!==void 0,Zhe=/web0s(?!.*chrome)/i.test(Ll),Jhe=Lx.f,b5=XR.set,$R=ue.MutationObserver||ue.WebKitMutationObserver,ZR=ue.document,JR=ue.process,km=ue.Promise,QR=Jhe(ue,"queueMicrotask"),eI=QR&&QR.value;eI||(yp=function(){var e,t;for(ma&&(e=JR.domain)&&e.exit();Xu;){t=Xu.fn,Xu=Xu.next;try{t()}catch(r){throw Xu?ql():bp=void 0,r}}bp=void 0,e&&e.enter()},UR||ma||Zhe||!$R||!ZR?!$he&&km&&km.resolve?((y5=km.resolve(void 0)).constructor=km,YR=hp(y5.then,y5),ql=function(){YR(yp)}):ma?ql=function(){JR.nextTick(yp)}:(b5=hp(b5,ue),ql=function(){b5(yp)}):(v5=!0,m5=ZR.createTextNode(""),new $R(yp).observe(m5,{characterData:!0}),ql=function(){m5.data=v5=!v5}));var w5,tI,rI,nI,oI=eI||function(e){var t={fn:e,next:void 0};bp&&(bp.next=t),Xu||(Xu=t,ql()),bp=t},Qhe=function(e){var t,r;this.promise=new e(function(n,o){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=o}),this.resolve=ha(t),this.reject=ha(r)},E5={f:function(e){return new Qhe(e)}},C5=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},ege=typeof window=="object",iI=XR.set,tge=Lt("species"),ni="Promise",aI=ln.getterFor(ni),rge=ln.set,nge=ln.getterFor(ni),$u=Cm&&Cm.prototype,So=Cm,wp=$u,uI=ue.TypeError,x5=ue.document,D5=ue.process,Wl=E5.f,oge=Wl,ige=!!(x5&&x5.createEvent&&ue.dispatchEvent),sI=it(ue.PromiseRejectionEvent),lI=!1,Ep=hm(ni,function(){var e=lm(So),t=e!==String(So);if(!t&&ip===66)return!0;if(ip>=51&&/native code/.test(e))return!1;var r=new So(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[tge]=n,!(lI=r.then(function(){})instanceof n)||!t&&ege&&!sI}),age=Ep||!VR(function(e){So.all(e).catch(function(){})}),cI=function(e){var t;return!(!yt(e)||!it(t=e.then))&&t},S5=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;oI(function(){for(var n=e.value,o=e.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(e.rejection===2&&sge(e),e.rejection=1),c===!0?a=n:(d&&d.enter(),a=c(n),d&&(d.exit(),s=!0)),a===l.promise?p(uI("Promise-chain cycle")):(u=cI(a))?ct(u,a,f,p):f(a)):p(n)}catch(v){d&&!s&&d.exit(),p(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&uge(e)})}},fI=function(e,t,r){var n,o;ige?((n=x5.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),ue.dispatchEvent(n)):n={promise:t,reason:r},!sI&&(o=ue["on"+e])?o(n):e==="unhandledrejection"&&(function(i,a){var u=ue.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))})("Unhandled promise rejection",r)},uge=function(e){ct(iI,ue,function(){var t,r=e.facade,n=e.value;if(dI(e)&&(t=C5(function(){ma?D5.emit("unhandledRejection",n,r):fI("unhandledrejection",r,n)}),e.rejection=ma||dI(e)?2:1,t.error))throw t.value})},dI=function(e){return e.rejection!==1&&!e.parent},sge=function(e){ct(iI,ue,function(){var t=e.facade;ma?D5.emit("rejectionHandled",t):fI("rejectionhandled",t,e.value)})},Gl=function(e,t,r){return function(n){e(t,n,r)}},Kl=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,S5(e,!0))},A5=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw uI("Promise can't be resolved itself");var n=cI(t);n?oI(function(){var o={done:!1};try{ct(n,t,Gl(A5,o,e),Gl(Kl,o,e))}catch(i){Kl(o,i,e)}}):(e.value=t,e.state=1,S5(e,!1))}catch(o){Kl({done:!1},o,e)}}};if(Ep&&(wp=(So=function(e){l5(this,wp),ha(e),ct(w5,this);var t=aI(this);try{e(Gl(A5,t),Gl(Kl,t))}catch(r){Kl(t,r)}}).prototype,(w5=function(e){rge(this,{type:ni,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=xm(wp,{then:function(e,t){var r=nge(this),n=r.reactions,o=Wl((function(i,a){var u,s=ir(i).constructor;return s===void 0||(u=ir(s)[Ghe])==null?a:(function(l){if($x(l))return l;throw Whe(im(l)+" is not a constructor")})(u)})(this,So));return o.ok=!it(e)||e,o.fail=it(t)&&t,o.domain=ma?D5.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&S5(r,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),tI=function(){var e=new w5,t=aI(e);this.promise=e,this.resolve=Gl(A5,t),this.reject=Gl(Kl,t)},E5.f=Wl=function(e){return e===So||e===rI?new tI(e):oge(e)},it(Cm)&&$u!==Object.prototype)){nI=$u.then,lI||(Bn($u,"then",function(e,t){var r=this;return new So(function(n,o){ct(nI,r,n,o)}).then(e,t)},{unsafe:!0}),Bn($u,"catch",wp.catch,{unsafe:!0}));try{delete $u.constructor}catch{}Vl&&Vl($u,wp)}function Cp(e,t,r){return r===void 0&&(r=""),em(this,void 0,void 0,function(){var n,o,i,a,u,s,l;return tm(this,function(c){switch(c.label){case 0:return t?(e.restoreSelection(),n=e.getMenuConfig("insertVideo"),o=n.onInsertedVideo,i=n.checkVideo,a=n.parseVideoSrc,[4,i(t,r)]):[2];case 1:return typeof(u=c.sent())=="string"?(e.alert(u,"error"),[2]):u==null?[2]:[4,a(t)];case 2:return(s=c.sent()).trim().indexOf("<iframe ")!==0&&(s=s.replace(/</g,"&lt;").replace(/>/g,"&gt;")),l={type:"video",src:s,poster:r,children:[{text:""}]},Promise.resolve().then(function(){V.insertNodes(e,l)}),o(l),[2]}})})}function k5(){return _R("w-e-insert-video")}Wr({global:!0,wrap:!0,forced:Ep},{Promise:So}),Dm(So,ni,!1),(function(e){var t=Gu("Promise"),r=ri.f;xo&&t&&!t[PR]&&r(t,PR,{configurable:!0,get:function(){return this}})})(),rI=Gu(ni),Wr({target:ni,stat:!0,forced:Ep},{reject:function(e){var t=Wl(this);return ct(t.reject,void 0,e),t.promise}}),Wr({target:ni,stat:!0,forced:Ep},{resolve:function(e){return(function(t,r){if(ir(t),yt(r)&&r.constructor===t)return r;var n=E5.f(t);return(0,n.resolve)(r),n.promise})(this,e)}}),Wr({target:ni,stat:!0,forced:age},{all:function(e){var t=this,r=Wl(t),n=r.resolve,o=r.reject,i=C5(function(){var a=ha(t.resolve),u=[],s=0,l=1;Am(e,function(c){var f=s++,p=!1;l++,ct(a,t,c).then(function(d){p||(p=!0,u[f]=d,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(e){var t=this,r=Wl(t),n=r.reject,o=C5(function(){var i=ha(t.resolve);Am(e,function(a){ct(i,t,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var lge=(function(){function e(){this.title=ie("videoModule.insertVideo"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.srcInputId=k5(),this.posterInputId=k5(),this.buttonId=k5()}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!X.isCollapsed(r)||!!_.getSelectedElems(t).some(function(n){var o=_.getNodeType(n);return o==="pre"||o==="list-item"||!!t.isVoid(n)})},e.prototype.getModalPositionNode=function(t){return null},e.prototype.getModalContentElem=function(t){var r=this,n=this,o=n.srcInputId,i=n.posterInputId,a=n.buttonId,u=Wu(rn(ie("videoModule.videoSrc"),o,ie("videoModule.videoSrcPlaceHolder")),2),s=u[0],l=u[1],c=Wu(rn(ie("videoModule.videoPoster"),i,ie("videoModule.videoPosterPlaceHolder")),2),f=c[0],p=c[1],d=T(l),v=T(p),m=Wu(cl(a,ie("videoModule.ok")),1)[0];if(this.$content==null){var g=T("<div></div>");g.on("click","#"+a,function(h){return em(r,void 0,void 0,function(){var b,w;return tm(this,function(x){switch(x.label){case 0:return h.preventDefault(),b=g.find("#"+o).val().trim(),w=g.find("#"+i).val().trim(),[4,Cp(t,b,w)];case 1:return x.sent(),t.hidePanelOrModal(),[2]}})})}),this.$content=g}var y=this.$content;return y.empty(),y.append(s),y.append(f),y.append(m),d.val(""),v.val(""),setTimeout(function(){d.focus()}),y[0]},e})(),cge=Ae([].join),fge=Bx!=Object,dge=(function(e,t){var r=[].join;return!!r&&lt(function(){r.call(null,",",1)})})();Wr({target:"Array",proto:!0,forced:fge||!dge},{join:function(e){return cge(pa(this),e===void 0?",":e)}});var Zu,pI,hI,pge=!lt(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),gI=Mx("IE_PROTO"),O5=ue.Object,hge=O5.prototype,Om=pge?O5.getPrototypeOf:function(e){var t=am(e);if(Yt(t,gI))return t[gI];var r=t.constructor;return it(r)&&t instanceof r?r.prototype:t instanceof O5?hge:null},B5=Lt("iterator"),vI=!1;[].keys&&("next"in(hI=[].keys())?(pI=Om(Om(hI)))!==Object.prototype&&(Zu=pI):vI=!0);var gge=Zu==null||lt(function(){var e={};return Zu[B5].call(e)!==e});gge&&(Zu={}),it(Zu[B5])||Bn(Zu,B5,function(){return this});var F5={IteratorPrototype:Zu,BUGGY_SAFARI_ITERATORS:vI},vge=F5.IteratorPrototype,mge=function(){return this},yge=zl.PROPER,bge=zl.CONFIGURABLE,mI=F5.IteratorPrototype,_5=F5.BUGGY_SAFARI_ITERATORS,xp=Lt("iterator"),wge=function(){return this},yI=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=Gx(vge,{next:om(1,h)}),Dm(g,w,!1),Hl[w]=mge})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!_5&&g in p)return p[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,p=e.prototype,d=p[xp]||p["@@iterator"]||o&&p[o],v=!_5&&d||l(o),m=t=="Array"&&p.entries||d;return m&&(u=Om(m.call(new e)))!==Object.prototype&&u.next&&(Om(u)!==mI&&(Vl?Vl(u,mI):it(u[xp])||Bn(u,xp,wge)),Dm(u,c,!0)),yge&&o=="values"&&d&&d.name!=="values"&&(bge?va(p,"name","values"):(f=!0,v=function(){return ct(d,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Wr({target:t,proto:!0,forced:_5||f},s)),p[xp]!==v&&Bn(p,xp,v,{name:o}),Hl[t]=v,s},Ege=ln.set,Cge=ln.getterFor("Array Iterator"),Dp=yI(Array,"Array",function(e,t){Ege(this,{type:"Array Iterator",target:pa(e),index:0,kind:t})},function(){var e=Cge(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");Hl.Arguments=Hl.Array,pp("keys"),pp("values"),pp("entries");var xge=kR.charAt,Dge=ln.set,Sge=ln.getterFor("String Iterator");yI(String,"String",function(e){Dge(this,{type:"String Iterator",string:Fn(e),index:0})},function(){var e,t=Sge(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=xge(r,n),t.index+=e.length,{value:e,done:!1})});var bI=function(e,t,r){var n=Rx(t);n in e?ri.f(e,n,om(0,r)):e[n]=r},Age=ue.Array,kge=Math.max,wI=pm.f,EI=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Oge={f:function(e){return EI&&Do(e)=="Window"?(function(t){try{return wI(t)}catch{return(function(n,o,i){for(var a=fp(n),u=cp(void 0,a),s=cp(a,a),l=Age(kge(s-u,0)),c=0;u<s;u++,c++)bI(l,c,n[u]);return l.length=c,l})(EI)}})(e):wI(pa(e))}},CI=lt(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Bm=Object.isExtensible,Ju=lt(function(){Bm(1)})||CI?function(e){return!!yt(e)&&(!CI||Do(e)!="ArrayBuffer")&&(!Bm||Bm(e))}:Bm,Bge=!lt(function(){return Object.isExtensible(Object.preventExtensions({}))}),T5=Sx(function(e){var t=ri.f,r=!1,n=Nx("meta"),o=0,i=function(u){t(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var u=pm.f,s=Ae([].splice),l={};l[n]=1,u(l).length&&(pm.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===n){s(f,p,1);break}return f},Wr({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Oge.f}))},fastKey:function(u,s){if(!yt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Yt(u,n)){if(!Ju(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!Yt(u,n)){if(!Ju(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return Bge&&r&&Ju(u)&&!Yt(u,n)&&i(u),u}};cm[n]=!0}),Fm=T5.getWeakData,Fge=ln.set,_ge=ln.getterFor,Tge=Zx.find,Pge=Zx.findIndex,jge=Ae([].splice),Nge=0,_m=function(e){return e.frozen||(e.frozen=new xI)},xI=function(){this.entries=[]},P5=function(e,t){return Tge(e.entries,function(r){return r[0]===t})};xI.prototype={get:function(e){var t=P5(this,e);if(t)return t[1]},has:function(e){return!!P5(this,e)},set:function(e,t){var r=P5(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Pge(this.entries,function(r){return r[0]===e});return~t&&jge(this.entries,t,1),!!~t}};var Sp,DI={getConstructor:function(e,t,r,n){var o=e(function(s,l){l5(s,i),Fge(s,{type:t,id:Nge++,frozen:void 0}),l!=null&&Am(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=_ge(t),u=function(s,l,c){var f=a(s),p=Fm(ir(l),!0);return p===!0?_m(f).set(l,c):p[f.id]=c,s};return xm(i,{delete:function(s){var l=a(this);if(!yt(s))return!1;var c=Fm(s);return c===!0?_m(l).delete(s):c&&Yt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!yt(s))return!1;var c=Fm(s);return c===!0?_m(l).has(s):c&&Yt(c,l.id)}}),xm(i,r?{get:function(s){var l=a(this);if(yt(s)){var c=Fm(s);return c===!0?_m(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},Tm=ln.enforce,Rge=!ue.ActiveXObject&&"ActiveXObject"in ue,SI=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ige=(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=ue[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=Ae(u[g]);Bn(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!yt(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!yt(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!yt(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(hm(e,!it(a)||!(o||u.forEach&&!lt(function(){new a().entries().next()}))))s=r.getConstructor(t,e,n,i),T5.enable();else if(hm(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=lt(function(){f.has(1)}),v=VR(function(g){new a(g)}),m=!o&&lt(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});v||((s=t(function(g,y){l5(g,u);var h=(function(b,w,x){var A,S;return Vl&&it(A=w.constructor)&&A!==x&&yt(S=A.prototype)&&S!==x.prototype&&Vl(b,S),b})(new a,g,s);return y!=null&&Am(y,h[i],{that:h,AS_ENTRIES:n}),h})).prototype=u,u.constructor=s),(d||m)&&(c("delete"),c("has"),n&&c("get")),(m||p)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Wr({global:!0,forced:s!=a},l),Dm(s,e),o||r.setStrong(s,e,n),s})("WeakMap",SI,DI);if(YN&&Rge){Sp=DI.getConstructor(SI,"WeakMap",!0),T5.enable();var Ap=Ige.prototype,AI=Ae(Ap.delete),Pm=Ae(Ap.has),kI=Ae(Ap.get),OI=Ae(Ap.set);xm(Ap,{delete:function(e){if(yt(e)&&!Ju(e)){var t=Tm(this);return t.frozen||(t.frozen=new Sp),AI(this,e)||t.frozen.delete(e)}return AI(this,e)},has:function(e){if(yt(e)&&!Ju(e)){var t=Tm(this);return t.frozen||(t.frozen=new Sp),Pm(this,e)||t.frozen.has(e)}return Pm(this,e)},get:function(e){if(yt(e)&&!Ju(e)){var t=Tm(this);return t.frozen||(t.frozen=new Sp),Pm(this,e)?kI(this,e):t.frozen.get(e)}return kI(this,e)},set:function(e,t){if(yt(e)&&!Ju(e)){var r=Tm(this);r.frozen||(r.frozen=new Sp),Pm(this,e)?OI(this,e,t):r.frozen.set(e,t)}else OI(this,e,t);return this}})}var BI={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},j5=sp("span").classList,FI=j5&&j5.constructor&&j5.constructor.prototype,Lge=FI===Object.prototype?void 0:FI,N5=Lt("iterator"),_I=Lt("toStringTag"),R5=Dp.values,TI=function(e,t){if(e){if(e[N5]!==R5)try{va(e,N5,R5)}catch{e[N5]=R5}if(e[_I]||va(e,_I,t),BI[t]){for(var r in Dp)if(e[r]!==Dp[r])try{va(e,r,Dp[r])}catch{e[r]=Dp[r]}}}};for(var I5 in BI)TI(ue[I5]&&ue[I5].prototype,I5);TI(Lge,"DOMTokenList");var Mge=zl.EXISTS,zge=ri.f,PI=Function.prototype,Vge=Ae(PI.toString),jI=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Hge=Ae(jI.exec);xo&&!Mge&&zge(PI,"name",{configurable:!0,get:function(){try{return Hge(jI,Vge(this))[1]}catch{return""}}});var Uge=Lt("species"),qge=ip>=51||!lt(function(){var e=[];return(e.constructor={})[Uge]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),Wge=Lt("species"),L5=ue.Array,Gge=Math.max;function NI(e){return e.getMenuConfig("uploadVideo")}Wr({target:"Array",proto:!0,forced:!qge},{slice:function(e,t){var r,n,o,i=pa(this),a=fp(i),u=cp(e,a),s=cp(t===void 0?a:t,a);if(bm(i)&&(r=i.constructor,($x(r)&&(r===L5||bm(r.prototype))||yt(r)&&(r=r[Wge])===null)&&(r=void 0),r===L5||r===void 0))return HR(i,u,s);for(n=new(r===void 0?L5:r)(Gge(s-u,0)),o=0;u<s;u++,o++)u in i&&bI(n,o,i[u]);return n.length=o,n}});var RI=new WeakMap;function Kge(e,t){return em(this,void 0,void 0,function(){var r,n,o,i;return tm(this,function(a){switch(a.label){case 0:return r=(function(u){var s=RI.get(u);if(s!=null)return s;var l=NI(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,v=l.onError;return s=NB(Qv(Qv({},l),{onProgress:function(m){u.showProgressBar(m),f&&f(m)},onSuccess:function(m,g){if(d)return d(g,function(B,P){return Cp(u,B,P)}),void c(m,g);var y=g.errno,h=y===void 0?1:y,b=g.data,w=b===void 0?{}:b;if(h===0){var x=w.url,A=x===void 0?"":x,S=w.poster;Cp(u,A,S===void 0?"":S),c(m,g)}else p(m,g)},onError:function(m,g,y){v(m,g,y)}})),RI.set(u,s),s})(e),n=t.name,o=t.type,i=t.size,r.addFile({name:n,type:o,size:i,data:t}),[4,r.upload()];case 1:return a.sent(),[2]}})})}var Yge=(function(){function e(){this.title=ie("videoModule.uploadVideo"),this.iconSvg='<svg viewBox="0 0 1056 1024"><path d="M805.902261 521.819882a251.441452 251.441452 0 0 0-251.011972 246.600033 251.051015 251.051015 0 1 0 502.023944 8.823877 253.237463 253.237463 0 0 0-251.011972-255.42391z m59.463561 240.001647v129.898403h-116.701631v-129.898403h-44.041298l101.279368-103.504859 101.279368 103.504859z" p-id="6802"></path><path d="M788.254507 0.000781H99.094092A98.663439 98.663439 0 0 0 0.001171 99.093701v590.067495a98.663439 98.663439 0 0 0 99.092921 99.092921h411.7549a266.434235 266.434235 0 0 1-2.186448-41.815807 275.843767 275.843767 0 0 1 275.180024-270.729042 270.650955 270.650955 0 0 1 103.504859 19.834201V99.093701A101.51363 101.51363 0 0 0 788.254507 0.000781zM295.054441 640.747004V147.507894l394.146189 246.600033z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){var n=this.getMenuConfig(t),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a(function(c,f){return Cp(t,c,f)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=T("body"),l=T('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;(function(f,p){var d,v;em(this,void 0,void 0,function(){var m,g,y,h,b,w;return tm(this,function(x){switch(x.label){case 0:if(p==null)return[2];m=Array.prototype.slice.call(p),g=NI(f).customUpload,x.label=1;case 1:x.trys.push([1,9,10,15]),y=Wde(m),x.label=2;case 2:return[4,y.next()];case 3:return(h=x.sent()).done?[3,8]:(b=h.value,g?[4,g(b,function(A,S){return Cp(f,A,S)})]:[3,5]);case 4:return x.sent(),[3,7];case 5:return[4,Kge(f,b)];case 6:x.sent(),x.label=7;case 7:return[3,2];case 8:return[3,15];case 9:return w=x.sent(),d={error:w},[3,15];case 10:return x.trys.push([10,,13,14]),h&&!h.done&&(v=y.return)?[4,v.call(y)]:[3,12];case 11:x.sent(),x.label=12;case 12:return[3,14];case 13:if(d)throw d.error;return[7];case 14:return[7];case 15:return[2]}})})})(t,c)})}},e.prototype.isDisabled=function(t){var r=t.selection;return r==null||!X.isCollapsed(r)||!!_.getSelectedElems(t).some(function(n){var o=_.getNodeType(n);return o==="pre"||o==="list-item"||!!t.isVoid(n)})},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadVideo")},e})(),Xge=zl.PROPER,M5=RegExp.prototype,II=M5.toString,$ge=Ae(bR),Zge=lt(function(){return II.call({source:"a",flags:"b"})!="/a/b"}),Jge=Xge&&II.name!="toString";function z5(){return _R("w-e-insert-video")}(Zge||Jge)&&Bn(RegExp.prototype,"toString",function(){var e=ir(this),t=Fn(e.source),r=e.flags;return"/"+t+"/"+Fn(r===void 0&&op(M5,e)&&!("flags"in M5)?$ge(e):r)},{unsafe:!0});var Qge=(function(){function e(){this.title=ie("videoModule.editSize"),this.tag="button",this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=z5(),this.heightInputId=z5(),this.buttonId=z5()}return e.prototype.getSelectedVideoNode=function(t){return _.getSelectedNodeByType(t,"video")},e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.exec=function(t,r){},e.prototype.isDisabled=function(t){return t.selection==null||this.getSelectedVideoNode(t)==null},e.prototype.getModalPositionNode=function(t){return this.getSelectedVideoNode(t)},e.prototype.getModalContentElem=function(t){var r=this,n=r.widthInputId,o=r.heightInputId,i=r.buttonId,a=Wu(rn(ie("videoModule.width"),n,"auto"),2),u=a[0],s=T(a[1]),l=Wu(rn(ie("videoModule.height"),o,"auto"),2),c=l[0],f=T(l[1]),p=Wu(cl(i,ie("videoModule.ok")),1)[0];if(this.$content==null){var d=T("<div></div>");d.on("click","#"+i,function(w){w.preventDefault();var x=d.find("#"+n).val().trim(),A=d.find("#"+o).val().trim(),S=parseInt(x),B=parseInt(A),P=S?S.toString():"auto",H=B?B.toString():"auto";t.restoreSelection(),V.setNodes(t,{width:P,height:H},{match:function(U){return _.checkNodeType(U,"video")}}),t.hidePanelOrModal()}),this.$content=d}var v=this.$content;v.empty(),v.append(u),v.append(c),v.append(p);var m=this.getSelectedVideoNode(t);if(m==null)return v[0];var g=m.width,y=g===void 0?"auto":g,h=m.height,b=h===void 0?"auto":h;return s.val(y),f.val(b),setTimeout(function(){s.focus()}),v[0]},e})(),e0e={renderElems:[Ype],elemsToHtml:[Xpe],preParseHtml:[Qpe],parseElemsHtml:[uhe],menus:[{key:"insertVideo",factory:function(){return new lge},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:"uploadVideo",factory:function(){return new Yge},config:{server:"",fieldName:"wangeditor-uploaded-video",maxFileSize:10485760,maxNumberOfFiles:5,allowedFileTypes:["video/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:3e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,r){console.error("'"+e.name+" upload error",t,r)}}},{key:"editVideoSize",factory:function(){return new Qge}}],editorPlugin:function(e){var t=e.isVoid,r=e.normalizeNode,n=e;return n.isVoid=function(o){return o.type==="video"||t(o)},n.normalizeNode=function(o){var i=Wu(o,2),a=i[0],u=i[1];return _.getNodeType(a)==="video"&&_.isLastNode(n,a)&&V.insertNodes(n,_.genEmptyParagraph(),{at:[u[0]+1]}),r([a,u])},n}};Vr("en",{uploadImgModule:{uploadImage:"Upload Image",uploadError:"{{fileName}} upload error"}}),Vr("zh-CN",{uploadImgModule:{uploadImage:"上传图片",uploadError:"{{fileName}} 上传出错"}});var LI=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function V5(e){var t={exports:{}};return e(t,t.exports),t.exports}var ya,jm,Nm=function(e){return e&&e.Math==Math&&e},ae=Nm(typeof globalThis=="object"&&globalThis)||Nm(typeof window=="object"&&window)||Nm(typeof self=="object"&&self)||Nm(typeof LI=="object"&&LI)||(function(){return this})()||Function("return this")(),ht=function(e){try{return!!e()}catch{return!0}},Ao=!ht(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),kp=Function.prototype.call,et=kp.bind?kp.bind(kp):function(){return kp.apply(kp,arguments)},MI={}.propertyIsEnumerable,zI=Object.getOwnPropertyDescriptor,t0e={f:zI&&!MI.call({1:2},1)?function(e){var t=zI(this,e);return!!t&&t.enumerable}:MI},Rm=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},VI=Function.prototype,H5=VI.bind,U5=VI.call,r0e=H5&&H5.bind(U5),je=H5?function(e){return e&&r0e(U5,e)}:function(e){return e&&function(){return U5.apply(e,arguments)}},n0e=je({}.toString),o0e=je("".slice),Yn=function(e){return o0e(n0e(e),8,-1)},q5=ae.Object,i0e=je("".split),W5=ht(function(){return!q5("z").propertyIsEnumerable(0)})?function(e){return Yn(e)=="String"?i0e(e,""):q5(e)}:q5,a0e=ae.TypeError,Op=function(e){if(e==null)throw a0e("Can't call method on "+e);return e},ba=function(e){return W5(Op(e))},st=function(e){return typeof e=="function"},gt=function(e){return typeof e=="object"?e!==null:st(e)},u0e=function(e){return st(e)?e:void 0},Qu=function(e,t){return arguments.length<2?u0e(ae[e]):ae[e]&&ae[e][t]},Bp=je({}.isPrototypeOf),Yl=Qu("navigator","userAgent")||"",HI=ae.process,UI=ae.Deno,qI=HI&&HI.versions||UI&&UI.version,WI=qI&&qI.v8;WI&&(jm=(ya=WI.split("."))[0]>0&&ya[0]<4?1:+(ya[0]+ya[1])),!jm&&Yl&&(!(ya=Yl.match(/Edge\/(\d+)/))||ya[1]>=74)&&(ya=Yl.match(/Chrome\/(\d+)/))&&(jm=+ya[1]);var Fp=jm,G5=!!Object.getOwnPropertySymbols&&!ht(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Fp&&Fp<41}),K5=G5&&!Symbol.sham&&typeof Symbol.iterator=="symbol",s0e=ae.Object,Y5=K5?function(e){return typeof e=="symbol"}:function(e){var t=Qu("Symbol");return st(t)&&Bp(t.prototype,s0e(e))},l0e=ae.String,Im=function(e){try{return l0e(e)}catch{return"Object"}},c0e=ae.TypeError,wa=function(e){if(st(e))return e;throw c0e(Im(e)+" is not a function")},_p=function(e,t){var r=e[t];return r==null?void 0:wa(r)},f0e=ae.TypeError,d0e=Object.defineProperty,X5=function(e,t){try{d0e(ae,e,{value:t,configurable:!0,writable:!0})}catch{ae[e]=t}return t},Ea=ae["__core-js_shared__"]||X5("__core-js_shared__",{}),$5=V5(function(e){(e.exports=function(t,r){return Ea[t]||(Ea[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),p0e=ae.Object,Z5=function(e){return p0e(Op(e))},h0e=je({}.hasOwnProperty),Xt=Object.hasOwn||function(e,t){return h0e(Z5(e),t)},g0e=0,v0e=Math.random(),m0e=je(1 .toString),J5=function(e){return"Symbol("+(e===void 0?"":e)+")_"+m0e(++g0e+v0e,36)},Tp=$5("wks"),es=ae.Symbol,GI=es&&es.for,y0e=K5?es:es&&es.withoutSetter||J5,Mt=function(e){if(!Xt(Tp,e)||!G5&&typeof Tp[e]!="string"){var t="Symbol."+e;G5&&Xt(es,e)?Tp[e]=es[e]:Tp[e]=K5&&GI?GI(t):y0e(t)}return Tp[e]},b0e=ae.TypeError,w0e=Mt("toPrimitive"),Q5=function(e){var t=(function(r,n){if(!gt(r)||Y5(r))return r;var o,i=_p(r,w0e);if(i){if(o=et(i,r,n),!gt(o)||Y5(o))return o;throw b0e("Can't convert object to primitive value")}return(function(a,u){var s,l;if(st(s=a.toString)&&!gt(l=et(s,a))||st(s=a.valueOf)&&!gt(l=et(s,a)))return l;throw f0e("Can't convert object to primitive value")})(r)})(e,"string");return Y5(t)?t:t+""},eD=ae.document,E0e=gt(eD)&&gt(eD.createElement),Pp=function(e){return E0e?eD.createElement(e):{}},KI=!Ao&&!ht(function(){return Object.defineProperty(Pp("div"),"a",{get:function(){return 7}}).a!=7}),YI=Object.getOwnPropertyDescriptor,tD={f:Ao?YI:function(e,t){if(e=ba(e),t=Q5(t),KI)try{return YI(e,t)}catch{}if(Xt(e,t))return Rm(!et(t0e.f,e,t),e[t])}},C0e=ae.String,x0e=ae.TypeError,ar=function(e){if(gt(e))return e;throw x0e(C0e(e)+" is not an object")},D0e=ae.TypeError,XI=Object.defineProperty,oi={f:Ao?XI:function(e,t,r){if(ar(e),t=Q5(t),ar(r),KI)try{return XI(e,t,r)}catch{}if("get"in r||"set"in r)throw D0e("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},ko=Ao?function(e,t,r){return oi.f(e,t,Rm(1,r))}:function(e,t,r){return e[t]=r,e},S0e=je(Function.toString);st(Ea.inspectSource)||(Ea.inspectSource=function(e){return S0e(e)});var Lm,jp,Mm,zm=Ea.inspectSource,$I=ae.WeakMap,ZI=st($I)&&/native code/.test(zm($I)),JI=$5("keys"),rD=function(e){return JI[e]||(JI[e]=J5(e))},Vm={},nD=ae.TypeError,A0e=ae.WeakMap;if(ZI||Ea.state){var ts=Ea.state||(Ea.state=new A0e),k0e=je(ts.get),QI=je(ts.has),O0e=je(ts.set);Lm=function(e,t){if(QI(ts,e))throw new nD("Object already initialized");return t.facade=e,O0e(ts,e,t),t},jp=function(e){return k0e(ts,e)||{}},Mm=function(e){return QI(ts,e)}}else{var Xl=rD("state");Vm[Xl]=!0,Lm=function(e,t){if(Xt(e,Xl))throw new nD("Object already initialized");return t.facade=e,ko(e,Xl,t),t},jp=function(e){return Xt(e,Xl)?e[Xl]:{}},Mm=function(e){return Xt(e,Xl)}}var cn={set:Lm,get:jp,has:Mm,enforce:function(e){return Mm(e)?jp(e):Lm(e,{})},getterFor:function(e){return function(t){var r;if(!gt(t)||(r=jp(t)).type!==e)throw nD("Incompatible receiver, "+e+" required");return r}}},eL=Function.prototype,B0e=Ao&&Object.getOwnPropertyDescriptor,oD=Xt(eL,"name"),Np={EXISTS:oD,PROPER:oD&&(function(){}).name==="something",CONFIGURABLE:oD&&(!Ao||Ao&&B0e(eL,"name").configurable)},_n=V5(function(e){var t=Np.CONFIGURABLE,r=cn.get,n=cn.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;st(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Xt(u,"name")||t&&u.name!==d)&&ko(u,"name",d),(l=n(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==ae?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ko(i,a,u)):f?i[a]=u:X5(a,u)})(Function.prototype,"toString",function(){return st(this)&&r(this).source||zm(this)})}),F0e=Math.ceil,_0e=Math.floor,iD=function(e){var t=+e;return t!=t||t===0?0:(t>0?_0e:F0e)(t)},T0e=Math.max,P0e=Math.min,Rp=function(e,t){var r=iD(e);return r<0?T0e(r+t,0):P0e(r,t)},j0e=Math.min,tL=function(e){return e>0?j0e(iD(e),9007199254740991):0},Ip=function(e){return tL(e.length)},N0e=function(e){return function(t,r,n){var o,i=ba(t),a=Ip(i),u=Rp(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},R0e=N0e(!1),rL=je([].push),nL=function(e,t){var r,n=ba(e),o=0,i=[];for(r in n)!Xt(Vm,r)&&Xt(n,r)&&rL(i,r);for(;t.length>o;)Xt(n,r=t[o++])&&(~R0e(i,r)||rL(i,r));return i},Hm=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],I0e=Hm.concat("length","prototype"),Um={f:Object.getOwnPropertyNames||function(e){return nL(e,I0e)}},L0e={f:Object.getOwnPropertySymbols},M0e=je([].concat),z0e=Qu("Reflect","ownKeys")||function(e){var t=Um.f(ar(e)),r=L0e.f;return r?M0e(t,r(e)):t},V0e=function(e,t){for(var r=z0e(t),n=oi.f,o=tD.f,i=0;i<r.length;i++){var a=r[i];Xt(e,a)||n(e,a,o(t,a))}},H0e=/#|\.prototype\./,Lp=function(e,t){var r=q0e[U0e(e)];return r==G0e||r!=W0e&&(st(t)?ht(t):!!t)},U0e=Lp.normalize=function(e){return String(e).replace(H0e,".").toLowerCase()},q0e=Lp.data={},W0e=Lp.NATIVE="N",G0e=Lp.POLYFILL="P",qm=Lp,K0e=tD.f,Oo=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?ae:l?ae[u]||X5(u,{}):(ae[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=K0e(r,n))&&a.value:r[n],!qm(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;V0e(i,o)}(e.sham||o&&o.sham)&&ko(i,"sham",!0),_n(r,n,i,e)}},Wm=Array.isArray||function(e){return Yn(e)=="Array"},oL={};oL[Mt("toStringTag")]="z";var aD=String(oL)==="[object z]",Y0e=Mt("toStringTag"),X0e=ae.Object,$0e=Yn((function(){return arguments})())=="Arguments",Gm=aD?Yn:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=X0e(e),Y0e))=="string"?r:$0e?Yn(t):(n=Yn(t))=="Object"&&st(t.callee)?"Arguments":n},iL=function(){},Z0e=[],aL=Qu("Reflect","construct"),uD=/^\s*(?:class|function)\b/,J0e=je(uD.exec),Q0e=!uD.exec(iL),Mp=function(e){if(!st(e))return!1;try{return aL(iL,Z0e,e),!0}catch{return!1}},sD=!aL||ht(function(){var e;return Mp(Mp.call)||!Mp(Object)||!Mp(function(){e=!0})||e})?function(e){if(!st(e))return!1;switch(Gm(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Q0e||!!J0e(uD,zm(e))}:Mp,uL=function(e,t,r){var n=Q5(t);n in e?oi.f(e,n,Rm(0,r)):e[n]=r},eve=Mt("species"),sL=je([].slice),tve=Fp>=51||!ht(function(){var e=[];return(e.constructor={})[eve]=function(){return{foo:1}},e.slice(Boolean).foo!==1}),rve=Mt("species"),lD=ae.Array,nve=Math.max;Oo({target:"Array",proto:!0,forced:!tve},{slice:function(e,t){var r,n,o,i=ba(this),a=Ip(i),u=Rp(e,a),s=Rp(t===void 0?a:t,a);if(Wm(i)&&(r=i.constructor,(sD(r)&&(r===lD||Wm(r.prototype))||gt(r)&&(r=r[rve])===null)&&(r=void 0),r===lD||r===void 0))return sL(i,u,s);for(n=new(r===void 0?lD:r)(nve(s-u,0)),o=0;u<s;u++,o++)u in i&&uL(n,o,i[u]);return n.length=o,n}});var ove=aD?{}.toString:function(){return"[object "+Gm(this)+"]"};aD||_n(Object.prototype,"toString",ove,{unsafe:!0});var Km,ive=ae.String,Ca=function(e){if(Gm(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return ive(e)},lL=function(){var e=ar(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},cD=ae.RegExp,fD=ht(function(){var e=cD("a","y");return e.lastIndex=2,e.exec("abcd")!=null});fD||ht(function(){return!cD("a","y").sticky});var cL={BROKEN_CARET:fD||ht(function(){var e=cD("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:fD},ave=Object.keys||function(e){return nL(e,Hm)},uve=Ao?Object.defineProperties:function(e,t){ar(e);for(var r,n=ba(t),o=ave(t),i=o.length,a=0;i>a;)oi.f(e,r=o[a++],n[r]);return e},dD=Qu("document","documentElement"),fL=rD("IE_PROTO"),pD=function(){},dL=function(e){return"<script>"+e+"<\/script>"},pL=function(e){e.write(dL("")),e.close();var t=e.parentWindow.Object;return e=null,t},Ym=function(){try{Km=new ActiveXObject("htmlfile")}catch{}var e,t;Ym=typeof document<"u"?document.domain&&Km?pL(Km):((t=Pp("iframe")).style.display="none",dD.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(dL("document.F=Object")),e.close(),e.F):pL(Km);for(var r=Hm.length;r--;)delete Ym.prototype[Hm[r]];return Ym()};Vm[fL]=!0;var hL,hD,gD=Object.create||function(e,t){var r;return e!==null?(pD.prototype=ar(e),r=new pD,pD.prototype=null,r[fL]=e):r=Ym(),t===void 0?r:uve(r,t)},sve=ae.RegExp,lve=ht(function(){var e=sve(".","s");return!(e.dotAll&&e.exec(`
76
+ `)&&e.flags==="s")}),cve=ae.RegExp,fve=ht(function(){var e=cve("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),dve=cn.get,pve=$5("native-string-replace",String.prototype.replace),Xm=RegExp.prototype.exec,vD=Xm,hve=je("".charAt),gve=je("".indexOf),vve=je("".replace),mD=je("".slice),yD=(hD=/b*/g,et(Xm,hL=/a/,"a"),et(Xm,hD,"a"),hL.lastIndex!==0||hD.lastIndex!==0),gL=cL.BROKEN_CARET,bD=/()??/.exec("")[1]!==void 0;(yD||bD||gL||lve||fve)&&(vD=function(e){var t,r,n,o,i,a,u,s=this,l=dve(s),c=Ca(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=et(vD,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=gL&&s.sticky,v=et(lL,s),m=s.source,g=0,y=c;if(d&&(v=vve(v,"y",""),gve(v,"g")===-1&&(v+="g"),y=mD(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&hve(c,s.lastIndex-1)!==`
77
+ `)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),bD&&(r=new RegExp("^"+m+"$(?!\\s)",v)),yD&&(n=s.lastIndex),o=et(Xm,d?r:s,y),d?o?(o.input=mD(o.input,g),o[0]=mD(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:yD&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),bD&&o&&o.length>1&&et(pve,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=gD(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var zp=vD;Oo({target:"RegExp",proto:!0,forced:/./.exec!==zp},{exec:zp});var wD=Function.prototype,vL=wD.apply,mve=wD.bind,mL=wD.call,yL=typeof Reflect=="object"&&Reflect.apply||(mve?mL.bind(vL):function(){return mL.apply(vL,arguments)}),yve=Mt("species"),ED=RegExp.prototype,bve=Mt("match"),wve=ae.TypeError,Eve=Mt("species"),bL=function(e,t){var r,n=ar(e).constructor;return n===void 0||(r=ar(n)[Eve])==null?t:(function(o){if(sD(o))return o;throw wve(Im(o)+" is not a constructor")})(r)},Cve=je("".charAt),wL=je("".charCodeAt),xve=je("".slice),Dve=function(e){return function(t,r){var n,o,i=Ca(Op(t)),a=iD(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=wL(i,a))<55296||n>56319||a+1===u||(o=wL(i,a+1))<56320||o>57343?e?Cve(i,a):n:e?xve(i,a,a+2):o-56320+(n-55296<<10)+65536}},EL={charAt:Dve(!0)},Sve=EL.charAt,Ave=function(e,t,r){return t+(r?Sve(e,t).length:1)},kve=ae.Array,Ove=Math.max,CD=function(e,t,r){for(var n=Ip(e),o=Rp(t,n),i=Rp(r===void 0?n:r,n),a=kve(Ove(i-o,0)),u=0;o<i;o++,u++)uL(a,u,e[o]);return a.length=u,a},Bve=ae.TypeError,CL=function(e,t){var r=e.exec;if(st(r)){var n=et(r,e,t);return n!==null&&ar(n),n}if(Yn(e)==="RegExp")return et(zp,e,t);throw Bve("RegExp#exec called on incompatible receiver")},$l=cL.UNSUPPORTED_Y,Fve=Math.min,xL=[].push,_ve=je(/./.exec),Zl=je(xL),Vp=je("".slice);(function(e,t,r,n){var o=Mt(e),i=!ht(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!ht(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[yve]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=je(/./[o]),s=(function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,v){var m,g,y=Ca(Op(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(d===void 0)return[y];if(!gt(m=d)||!((g=m[bve])!==void 0?g:Yn(m)=="RegExp"))return et(c,y,d,h);for(var b,w,x,A=[],S=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),B=0,P=new RegExp(d.source,S+"g");(b=et(zp,P,y))&&!((w=P.lastIndex)>B&&(Zl(A,Vp(y,B,b.index)),b.length>1&&b.index<y.length&&yL(xL,A,CD(b,1)),x=b[0].length,B=w,A.length>=h));)P.lastIndex===b.index&&P.lastIndex++;return B===y.length?!x&&_ve(P,"")||Zl(A,""):Zl(A,Vp(y,B)),A.length>h?CD(A,0,h):A}:"0".split(void 0,0).length?function(d,v){return d===void 0&&v===0?[]:et(c,this,d,v)}:c,[function(d,v){var m=Op(this),g=d==null?void 0:_p(d,l);return g?et(g,d,m,v):et(p,Ca(m),d,v)},function(d,v){var m=ar(this),g=Ca(d),y=f(p,m,g,v,p!==c);if(y.done)return y.value;var h=bL(m,RegExp),b=m.unicode,w=(m.ignoreCase?"i":"")+(m.multiline?"m":"")+(m.unicode?"u":"")+($l?"g":"y"),x=new h($l?"^(?:"+m.source+")":m,w),A=v===void 0?4294967295:v>>>0;if(A===0)return[];if(g.length===0)return CL(x,g)===null?[g]:[];for(var S=0,B=0,P=[];B<g.length;){x.lastIndex=$l?0:B;var H,U=CL(x,$l?Vp(g,B):g);if(U===null||(H=Fve(tL(x.lastIndex+($l?B:0)),g.length))===S)B=Ave(g,B,b);else{if(Zl(P,Vp(g,S,B)),P.length===A)return P;for(var W=1;W<=U.length-1;W++)if(Zl(P,U[W]),P.length===A)return P;B=S=H}}return Zl(P,Vp(g,S)),P}]})(o,""[e],function(l,c,f,p,d){var v=je(l),m=c.exec;return m===zp||m===ED.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:v(f,c,p)}:{done:!1}});_n(String.prototype,e,s[0]),_n(ED,o,s[1])}n&&ko(ED[o],"sham",!0)})("split",0,!!ht(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),$l);var $m=function(){return $m=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},$m.apply(this,arguments)};function xD(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(l){try{s(n.next(l))}catch(c){i(c)}}function u(l){try{s(n.throw(l))}catch(c){i(c)}}function s(l){var c;l.done?o(l.value):(c=l.value,c instanceof r?c:new r(function(f){f(c)})).then(a,u)}s((n=n.apply(e,[])).next())})}function DD(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function u(s){return function(l){return(function(c){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,n=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||c[0]!==6&&c[0]!==2)){a=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){a.label=c[1];break}if(c[0]===6&&a.label<o[1]){a.label=o[1],o=c;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(c);break}o[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(f){c=[6,f],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}})([s,l])}}}function Tve(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=(function(o){var i=typeof Symbol=="function"&&Symbol.iterator,a=i&&o[i],u=0;if(a)return a.call(o);if(o&&typeof o.length=="number")return{next:function(){return o&&u>=o.length&&(o=void 0),{value:o&&o[u++],done:!o}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")})(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(o){t[o]=e[o]&&function(i){return new Promise(function(a,u){(function(s,l,c,f){Promise.resolve(f).then(function(p){s({value:p,done:c})},l)})(a,u,(i=e[o](i)).done,i.value)})}}}var SD=Mt("unscopables"),AD=Array.prototype;AD[SD]==null&&oi.f(AD,SD,{configurable:!0,value:gD(null)});var rs,DL,SL,kD=function(e){AD[SD][e]=!0},Jl={},Pve=!ht(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),AL=rD("IE_PROTO"),OD=ae.Object,jve=OD.prototype,Zm=Pve?OD.getPrototypeOf:function(e){var t=Z5(e);if(Xt(t,AL))return t[AL];var r=t.constructor;return st(r)&&t instanceof r?r.prototype:t instanceof OD?jve:null},BD=Mt("iterator"),kL=!1;[].keys&&("next"in(SL=[].keys())?(DL=Zm(Zm(SL)))!==Object.prototype&&(rs=DL):kL=!0);var Nve=rs==null||ht(function(){var e={};return rs[BD].call(e)!==e});Nve&&(rs={}),st(rs[BD])||_n(rs,BD,function(){return this});var FD={IteratorPrototype:rs,BUGGY_SAFARI_ITERATORS:kL},Rve=oi.f,OL=Mt("toStringTag"),Jm=function(e,t,r){e&&!Xt(e=r?e:e.prototype,OL)&&Rve(e,OL,{configurable:!0,value:t})},Ive=FD.IteratorPrototype,Lve=function(){return this},Mve=ae.String,zve=ae.TypeError,Ql=Object.setPrototypeOf||("__proto__"in{}?(function(){var e,t=!1,r={};try{(e=je(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),t=r instanceof Array}catch{}return function(n,o){return ar(n),(function(i){if(typeof i=="object"||st(i))return i;throw zve("Can't set "+Mve(i)+" as a prototype")})(o),t?e(n,o):n.__proto__=o,n}})():void 0),Vve=Np.PROPER,Hve=Np.CONFIGURABLE,BL=FD.IteratorPrototype,_D=FD.BUGGY_SAFARI_ITERATORS,Hp=Mt("iterator"),Uve=function(){return this},FL=function(e,t,r,n,o,i,a){(function(g,y,h,b){var w=y+" Iterator";g.prototype=gD(Ive,{next:Rm(1,h)}),Jm(g,w,!1),Jl[w]=Lve})(r,t,n);var u,s,l=function(g){if(g===o&&v)return v;if(!_D&&g in p)return p[g];switch(g){case"keys":case"values":case"entries":return function(){return new r(this,g)}}return function(){return new r(this)}},c=t+" Iterator",f=!1,p=e.prototype,d=p[Hp]||p["@@iterator"]||o&&p[o],v=!_D&&d||l(o),m=t=="Array"&&p.entries||d;return m&&(u=Zm(m.call(new e)))!==Object.prototype&&u.next&&(Zm(u)!==BL&&(Ql?Ql(u,BL):st(u[Hp])||_n(u,Hp,Uve)),Jm(u,c,!0)),Vve&&o=="values"&&d&&d.name!=="values"&&(Hve?ko(p,"name","values"):(f=!0,v=function(){return et(d,this)})),o&&(s={values:l("values"),keys:l("keys"),entries:l("entries")},a||Oo({target:t,proto:!0,forced:_D||f},s)),p[Hp]!==v&&_n(p,Hp,v,{name:o}),Jl[t]=v,s},qve=cn.set,Wve=cn.getterFor("Array Iterator"),Up=FL(Array,"Array",function(e,t){qve(this,{type:"Array Iterator",target:ba(e),index:0,kind:t})},function(){var e=Wve(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,{value:void 0,done:!0}):r=="keys"?{value:n,done:!1}:r=="values"?{value:t[n],done:!1}:{value:[n,t[n]],done:!1}},"values");Jl.Arguments=Jl.Array,kD("keys"),kD("values"),kD("entries");var Gve=EL.charAt,Kve=cn.set,Yve=cn.getterFor("String Iterator");FL(String,"String",function(e){Kve(this,{type:"String Iterator",string:Ca(e),index:0})},function(){var e,t=Yve(this),r=t.string,n=t.index;return n>=r.length?{value:void 0,done:!0}:(e=Gve(r,n),t.index+=e.length,{value:e,done:!1})});var Qm=function(e,t,r){for(var n in t)_n(e,n,t[n],r);return e},_L=Um.f,TL=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Xve={f:function(e){return TL&&Yn(e)=="Window"?(function(t){try{return _L(t)}catch{return CD(TL)}})(e):_L(ba(e))}},PL=ht(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),ey=Object.isExtensible,ns=ht(function(){ey(1)})||PL?function(e){return!!gt(e)&&(!PL||Yn(e)!="ArrayBuffer")&&(!ey||ey(e))}:ey,$ve=!ht(function(){return Object.isExtensible(Object.preventExtensions({}))}),TD=V5(function(e){var t=oi.f,r=!1,n=J5("meta"),o=0,i=function(u){t(u,n,{value:{objectID:"O"+o++,weakData:{}}})},a=e.exports={enable:function(){a.enable=function(){},r=!0;var u=Um.f,s=je([].splice),l={};l[n]=1,u(l).length&&(Um.f=function(c){for(var f=u(c),p=0,d=f.length;p<d;p++)if(f[p]===n){s(f,p,1);break}return f},Oo({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Xve.f}))},fastKey:function(u,s){if(!gt(u))return typeof u=="symbol"?u:(typeof u=="string"?"S":"P")+u;if(!Xt(u,n)){if(!ns(u))return"F";if(!s)return"E";i(u)}return u[n].objectID},getWeakData:function(u,s){if(!Xt(u,n)){if(!ns(u))return!0;if(!s)return!1;i(u)}return u[n].weakData},onFreeze:function(u){return $ve&&r&&ns(u)&&!Xt(u,n)&&i(u),u}};Vm[n]=!0}),jL=je(je.bind),qp=function(e,t){return wa(e),t===void 0?e:jL?jL(e,t):function(){return e.apply(t,arguments)}},Zve=Mt("iterator"),Jve=Array.prototype,Qve=Mt("iterator"),NL=function(e){if(e!=null)return _p(e,Qve)||_p(e,"@@iterator")||Jl[Gm(e)]},eme=ae.TypeError,RL=function(e,t,r){var n,o;ar(e);try{if(!(n=_p(e,"return"))){if(t==="throw")throw r;return r}n=et(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return ar(n),r},tme=ae.TypeError,ty=function(e,t){this.stopped=e,this.result=t},IL=ty.prototype,ry=function(e,t,r){var n,o,i,a,u,s,l,c,f=r&&r.that,p=!(!r||!r.AS_ENTRIES),d=!(!r||!r.IS_ITERATOR),v=!(!r||!r.INTERRUPTED),m=qp(t,f),g=function(h){return n&&RL(n,"normal",h),new ty(!0,h)},y=function(h){return p?(ar(h),v?m(h[0],h[1],g):m(h[0],h[1])):v?m(h,g):m(h)};if(d)n=e;else{if(!(o=NL(e)))throw tme(Im(e)+" is not iterable");if((c=o)!==void 0&&(Jl.Array===c||Jve[Zve]===c)){for(i=0,a=Ip(e);a>i;i++)if((u=y(e[i]))&&Bp(IL,u))return u;return new ty(!1)}n=(function(h,b){var w=arguments.length<2?NL(h):b;if(wa(w))return ar(et(w,h));throw eme(Im(h)+" is not iterable")})(e,o)}for(s=n.next;!(l=et(s,n)).done;){try{u=y(l.value)}catch(h){RL(n,"throw",h)}if(typeof u=="object"&&u&&Bp(IL,u))return u}return new ty(!1)},rme=ae.TypeError,PD=function(e,t){if(Bp(t,e))return e;throw rme("Incorrect invocation")},LL=Mt("iterator"),ML=!1;try{var nme=0,zL={next:function(){return{done:!!nme++}},return:function(){ML=!0}};zL[LL]=function(){return this},Array.from(zL,function(){throw 2})}catch{}var VL=function(e,t){if(!ML)return!1;var r=!1;try{var n={};n[LL]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch{}return r},ome=Mt("species"),HL=ae.Array,ime=function(e,t){return new((function(r){var n;return Wm(r)&&(n=r.constructor,(sD(n)&&(n===HL||Wm(n.prototype))||gt(n)&&(n=n[ome])===null)&&(n=void 0)),n===void 0?HL:n})(e))(t===0?0:t)},UL=je([].push),jD=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,v=Z5(s),m=W5(v),g=qp(l,c),y=Ip(m),h=0,b=f||ime,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(d=g(p=m[h],h,v),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:UL(w,p)}else switch(e){case 4:return!1;case 7:UL(w,p)}return i?-1:n||o?o:w}},ND={forEach:jD(0),find:jD(5),findIndex:jD(6)},ny=TD.getWeakData,ame=cn.set,ume=cn.getterFor,sme=ND.find,lme=ND.findIndex,cme=je([].splice),fme=0,oy=function(e){return e.frozen||(e.frozen=new qL)},qL=function(){this.entries=[]},RD=function(e,t){return sme(e.entries,function(r){return r[0]===t})};qL.prototype={get:function(e){var t=RD(this,e);if(t)return t[1]},has:function(e){return!!RD(this,e)},set:function(e,t){var r=RD(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=lme(this.entries,function(r){return r[0]===e});return~t&&cme(this.entries,t,1),!!~t}};var Wp,WL={getConstructor:function(e,t,r,n){var o=e(function(s,l){PD(s,i),ame(s,{type:t,id:fme++,frozen:void 0}),l!=null&&ry(l,s[n],{that:s,AS_ENTRIES:r})}),i=o.prototype,a=ume(t),u=function(s,l,c){var f=a(s),p=ny(ar(l),!0);return p===!0?oy(f).set(l,c):p[f.id]=c,s};return Qm(i,{delete:function(s){var l=a(this);if(!gt(s))return!1;var c=ny(s);return c===!0?oy(l).delete(s):c&&Xt(c,l.id)&&delete c[l.id]},has:function(s){var l=a(this);if(!gt(s))return!1;var c=ny(s);return c===!0?oy(l).has(s):c&&Xt(c,l.id)}}),Qm(i,r?{get:function(s){var l=a(this);if(gt(s)){var c=ny(s);return c===!0?oy(l).get(s):c?c[l.id]:void 0}},set:function(s,l){return u(this,s,l)}}:{add:function(s){return u(this,s,!0)}}),o}},iy=cn.enforce,dme=!ae.ActiveXObject&&"ActiveXObject"in ae,GL=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},pme=(function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=ae[e],u=a&&a.prototype,s=a,l={},c=function(g){var y=je(u[g]);_n(u,g,g=="add"?function(h){return y(this,h===0?0:h),this}:g=="delete"?function(h){return!(o&&!gt(h))&&y(this,h===0?0:h)}:g=="get"?function(h){return o&&!gt(h)?void 0:y(this,h===0?0:h)}:g=="has"?function(h){return!(o&&!gt(h))&&y(this,h===0?0:h)}:function(h,b){return y(this,h===0?0:h,b),this})};if(qm(e,!st(a)||!(o||u.forEach&&!ht(function(){new a().entries().next()}))))s=r.getConstructor(t,e,n,i),TD.enable();else if(qm(e,!0)){var f=new s,p=f[i](o?{}:-0,1)!=f,d=ht(function(){f.has(1)}),v=VL(function(g){new a(g)}),m=!o&&ht(function(){for(var g=new a,y=5;y--;)g[i](y,y);return!g.has(-0)});v||((s=t(function(g,y){PD(g,u);var h=(function(b,w,x){var A,S;return Ql&&st(A=w.constructor)&&A!==x&&gt(S=A.prototype)&&S!==x.prototype&&Ql(b,S),b})(new a,g,s);return y!=null&&ry(y,h[i],{that:h,AS_ENTRIES:n}),h})).prototype=u,u.constructor=s),(d||m)&&(c("delete"),c("has"),n&&c("get")),(m||p)&&c(i),o&&u.clear&&delete u.clear}return l[e]=s,Oo({global:!0,forced:s!=a},l),Jm(s,e),o||r.setStrong(s,e,n),s})("WeakMap",GL,WL);if(ZI&&dme){Wp=WL.getConstructor(GL,"WeakMap",!0),TD.enable();var Gp=pme.prototype,KL=je(Gp.delete),ay=je(Gp.has),YL=je(Gp.get),XL=je(Gp.set);Qm(Gp,{delete:function(e){if(gt(e)&&!ns(e)){var t=iy(this);return t.frozen||(t.frozen=new Wp),KL(this,e)||t.frozen.delete(e)}return KL(this,e)},has:function(e){if(gt(e)&&!ns(e)){var t=iy(this);return t.frozen||(t.frozen=new Wp),ay(this,e)||t.frozen.has(e)}return ay(this,e)},get:function(e){if(gt(e)&&!ns(e)){var t=iy(this);return t.frozen||(t.frozen=new Wp),ay(this,e)?YL(this,e):t.frozen.get(e)}return YL(this,e)},set:function(e,t){if(gt(e)&&!ns(e)){var r=iy(this);r.frozen||(r.frozen=new Wp),ay(this,e)?XL(this,e,t):r.frozen.set(e,t)}else XL(this,e,t);return this}})}var uy={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},ID=Pp("span").classList,$L=ID&&ID.constructor&&ID.constructor.prototype,ZL=$L===Object.prototype?void 0:$L,LD=Mt("iterator"),JL=Mt("toStringTag"),MD=Up.values,QL=function(e,t){if(e){if(e[LD]!==MD)try{ko(e,LD,MD)}catch{e[LD]=MD}if(e[JL]||ko(e,JL,t),uy[t]){for(var r in Up)if(e[r]!==Up[r])try{ko(e,r,Up[r])}catch{e[r]=Up[r]}}}};for(var zD in uy)QL(ae[zD]&&ae[zD].prototype,zD);QL(ZL,"DOMTokenList");var eM=function(e,t){var r=[][e];return!!r&&ht(function(){r.call(null,t||function(){throw 1},1)})},hme=ND.forEach,VD=eM("forEach")?[].forEach:function(e){return hme(this,e,arguments.length>1?arguments[1]:void 0)},tM=function(e){if(e&&e.forEach!==VD)try{ko(e,"forEach",VD)}catch{e.forEach=VD}};for(var HD in uy)uy[HD]&&tM(ae[HD]&&ae[HD].prototype);tM(ZL);var Kp,ec,rM,UD,sy=ae.Promise,nM=Mt("species"),oM=/(?:ipad|iphone|ipod).*applewebkit/i.test(Yl),xa=Yn(ae.process)=="process",qD=ae.setImmediate,iM=ae.clearImmediate,gme=ae.process,WD=ae.Dispatch,vme=ae.Function,aM=ae.MessageChannel,mme=ae.String,GD=0,Yp={};try{Kp=ae.location}catch{}var KD=function(e){if(Xt(Yp,e)){var t=Yp[e];delete Yp[e],t()}},YD=function(e){return function(){KD(e)}},uM=function(e){KD(e.data)},sM=function(e){ae.postMessage(mme(e),Kp.protocol+"//"+Kp.host)};qD&&iM||(qD=function(e){var t=sL(arguments,1);return Yp[++GD]=function(){yL(st(e)?e:vme(e),void 0,t)},ec(GD),GD},iM=function(e){delete Yp[e]},xa?ec=function(e){gme.nextTick(YD(e))}:WD&&WD.now?ec=function(e){WD.now(YD(e))}:aM&&!oM?(UD=(rM=new aM).port2,rM.port1.onmessage=uM,ec=qp(UD.postMessage,UD)):ae.addEventListener&&st(ae.postMessage)&&!ae.importScripts&&Kp&&Kp.protocol!=="file:"&&!ht(sM)?(ec=sM,ae.addEventListener("message",uM,!1)):ec="onreadystatechange"in Pp("script")?function(e){dD.appendChild(Pp("script")).onreadystatechange=function(){dD.removeChild(this),KD(e)}}:function(e){setTimeout(YD(e),0)});var Xp,os,$p,tc,XD,$D,ZD,lM,cM={set:qD},yme=/ipad|iphone|ipod/i.test(Yl)&&ae.Pebble!==void 0,bme=/web0s(?!.*chrome)/i.test(Yl),wme=tD.f,JD=cM.set,fM=ae.MutationObserver||ae.WebKitMutationObserver,dM=ae.document,pM=ae.process,ly=ae.Promise,hM=wme(ae,"queueMicrotask"),gM=hM&&hM.value;gM||(Xp=function(){var e,t;for(xa&&(e=pM.domain)&&e.exit();os;){t=os.fn,os=os.next;try{t()}catch(r){throw os?tc():$p=void 0,r}}$p=void 0,e&&e.enter()},oM||xa||bme||!fM||!dM?!yme&&ly&&ly.resolve?((ZD=ly.resolve(void 0)).constructor=ly,lM=qp(ZD.then,ZD),tc=function(){lM(Xp)}):xa?tc=function(){pM.nextTick(Xp)}:(JD=qp(JD,ae),tc=function(){JD(Xp)}):(XD=!0,$D=dM.createTextNode(""),new fM(Xp).observe($D,{characterData:!0}),tc=function(){$D.data=XD=!XD}));var QD,vM,mM,yM,bM=gM||function(e){var t={fn:e,next:void 0};$p&&($p.next=t),os||(os=t,tc()),$p=t},Eme=function(e){var t,r;this.promise=new e(function(n,o){if(t!==void 0||r!==void 0)throw TypeError("Bad Promise constructor");t=n,r=o}),this.resolve=wa(t),this.reject=wa(r)},e3={f:function(e){return new Eme(e)}},t3=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}},Cme=typeof window=="object",wM=cM.set,xme=Mt("species"),ii="Promise",EM=cn.getterFor(ii),Dme=cn.set,Sme=cn.getterFor(ii),is=sy&&sy.prototype,Bo=sy,Zp=is,CM=ae.TypeError,r3=ae.document,n3=ae.process,rc=e3.f,Ame=rc,kme=!!(r3&&r3.createEvent&&ae.dispatchEvent),xM=st(ae.PromiseRejectionEvent),DM=!1,Jp=qm(ii,function(){var e=zm(Bo),t=e!==String(Bo);if(!t&&Fp===66)return!0;if(Fp>=51&&/native code/.test(e))return!1;var r=new Bo(function(o){o(1)}),n=function(o){o(function(){},function(){})};return(r.constructor={})[xme]=n,!(DM=r.then(function(){})instanceof n)||!t&&Cme&&!xM}),Ome=Jp||!VL(function(e){Bo.all(e).catch(function(){})}),SM=function(e){var t;return!(!gt(e)||!st(t=e.then))&&t},o3=function(e,t){if(!e.notified){e.notified=!0;var r=e.reactions;bM(function(){for(var n=e.value,o=e.state==1,i=0;r.length>i;){var a,u,s,l=r[i++],c=o?l.ok:l.fail,f=l.resolve,p=l.reject,d=l.domain;try{c?(o||(e.rejection===2&&Fme(e),e.rejection=1),c===!0?a=n:(d&&d.enter(),a=c(n),d&&(d.exit(),s=!0)),a===l.promise?p(CM("Promise-chain cycle")):(u=SM(a))?et(u,a,f,p):f(a)):p(n)}catch(v){d&&!s&&d.exit(),p(v)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Bme(e)})}},AM=function(e,t,r){var n,o;kme?((n=r3.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),ae.dispatchEvent(n)):n={promise:t,reason:r},!xM&&(o=ae["on"+e])?o(n):e==="unhandledrejection"&&(function(i,a){var u=ae.console;u&&u.error&&(arguments.length==1?u.error(i):u.error(i,a))})("Unhandled promise rejection",r)},Bme=function(e){et(wM,ae,function(){var t,r=e.facade,n=e.value;if(kM(e)&&(t=t3(function(){xa?n3.emit("unhandledRejection",n,r):AM("unhandledrejection",r,n)}),e.rejection=xa||kM(e)?2:1,t.error))throw t.value})},kM=function(e){return e.rejection!==1&&!e.parent},Fme=function(e){et(wM,ae,function(){var t=e.facade;xa?n3.emit("rejectionHandled",t):AM("rejectionhandled",t,e.value)})},nc=function(e,t,r){return function(n){e(t,n,r)}},oc=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,o3(e,!0))},i3=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw CM("Promise can't be resolved itself");var n=SM(t);n?bM(function(){var o={done:!1};try{et(n,t,nc(i3,o,e),nc(oc,o,e))}catch(i){oc(o,i,e)}}):(e.value=t,e.state=1,o3(e,!1))}catch(o){oc({done:!1},o,e)}}};if(Jp&&(Zp=(Bo=function(e){PD(this,Zp),wa(e),et(QD,this);var t=EM(this);try{e(nc(i3,t),nc(oc,t))}catch(r){oc(t,r)}}).prototype,(QD=function(e){Dme(this,{type:ii,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Qm(Zp,{then:function(e,t){var r=Sme(this),n=r.reactions,o=rc(bL(this,Bo));return o.ok=!st(e)||e,o.fail=st(t)&&t,o.domain=xa?n3.domain:void 0,r.parent=!0,n[n.length]=o,r.state!=0&&o3(r,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),vM=function(){var e=new QD,t=EM(e);this.promise=e,this.resolve=nc(i3,t),this.reject=nc(oc,t)},e3.f=rc=function(e){return e===Bo||e===mM?new vM(e):Ame(e)},st(sy)&&is!==Object.prototype)){yM=is.then,DM||(_n(is,"then",function(e,t){var r=this;return new Bo(function(n,o){et(yM,r,n,o)}).then(e,t)},{unsafe:!0}),_n(is,"catch",Zp.catch,{unsafe:!0}));try{delete is.constructor}catch{}Ql&&Ql(is,Zp)}Oo({global:!0,wrap:!0,forced:Jp},{Promise:Bo}),Jm(Bo,ii,!1),(function(e){var t=Qu("Promise"),r=oi.f;Ao&&t&&!t[nM]&&r(t,nM,{configurable:!0,get:function(){return this}})})(),mM=Qu(ii),Oo({target:ii,stat:!0,forced:Jp},{reject:function(e){var t=rc(this);return et(t.reject,void 0,e),t.promise}}),Oo({target:ii,stat:!0,forced:Jp},{resolve:function(e){return(function(t,r){if(ar(t),gt(r)&&r.constructor===t)return r;var n=e3.f(t);return(0,n.resolve)(r),n.promise})(this,e)}}),Oo({target:ii,stat:!0,forced:Ome},{all:function(e){var t=this,r=rc(t),n=r.resolve,o=r.reject,i=t3(function(){var a=wa(t.resolve),u=[],s=0,l=1;ry(e,function(c){var f=s++,p=!1;l++,et(a,t,c).then(function(d){p||(p=!0,u[f]=d,--l||n(u))},o)}),--l||n(u)});return i.error&&o(i.value),r.promise},race:function(e){var t=this,r=rc(t),n=r.reject,o=t3(function(){var i=wa(t.resolve);ry(e,function(a){et(i,t,a).then(r.resolve,n)})});return o.error&&n(o.value),r.promise}});var _me=Np.PROPER,a3=RegExp.prototype,OM=a3.toString,Tme=je(lL),Pme=ht(function(){return OM.call({source:"a",flags:"b"})!="/a/b"}),jme=_me&&OM.name!="toString";(Pme||jme)&&_n(RegExp.prototype,"toString",function(){var e=ar(this),t=Ca(e.source),r=e.flags;return"/"+t+"/"+Ca(r===void 0&&Bp(a3,e)&&!("flags"in a3)?Tme(e):r)},{unsafe:!0});var Nme=Np.EXISTS,Rme=oi.f,BM=Function.prototype,Ime=je(BM.toString),FM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Lme=je(FM.exec);Ao&&!Nme&&Rme(BM,"name",{configurable:!0,get:function(){try{return Lme(FM,Ime(this))[1]}catch{return""}}});var _M=new WeakMap;function TM(e){return e.getMenuConfig("uploadImage")}function Mme(e,t){return xD(this,void 0,void 0,function(){return DD(this,function(r){return[2,new Promise(function(n){var o=new FileReader;o.readAsDataURL(t),o.onload=function(){var i=o.result;if(i){var a=i.toString(),u=a.indexOf("data:image")===0?"":a;Ou(e,a,t.name,u),n("ok")}}})]})})}function zme(e,t){return xD(this,void 0,void 0,function(){var r,n,o,i;return DD(this,function(a){switch(a.label){case 0:return r=(function(u){var s=_M.get(u);if(s!=null)return s;var l=TM(u),c=l.onSuccess,f=l.onProgress,p=l.onFailed,d=l.customInsert,v=l.onError;return s=NB($m($m({},l),{onProgress:function(m){u.showProgressBar(m),f&&f(m)},onSuccess:function(m,g){if(d)return d(g,function(H,U,W){return Ou(u,H,U,W)}),void c(m,g);var y=g.errno,h=y===void 0?1:y,b=g.data,w=b===void 0?{}:b;if(h===0){if(Array.isArray(w))w.forEach(function(H){var U=H.url,W=U===void 0?"":U,C=H.alt,z=C===void 0?"":C,k=H.href;Ou(u,W,z,k===void 0?"":k)});else{var x=w.url,A=x===void 0?"":x,S=w.alt,B=S===void 0?"":S,P=w.href;Ou(u,A,B,P===void 0?"":P)}c(m,g)}else p(m,g)},onError:function(m,g,y){v(m,g,y)}})),_M.set(u,s),s})(e),n=t.name,o=t.type,i=t.size,r.addFile({name:n,type:o,size:i,data:t}),[4,r.upload()];case 1:return a.sent(),[2]}})})}function PM(e,t){var r,n;return xD(this,void 0,void 0,function(){var o,i,a,u,s,l,c,f,p;return DD(this,function(d){switch(d.label){case 0:if(t==null)return[2];o=Array.prototype.slice.call(t),i=TM(e),a=i.customUpload,u=i.base64LimitSize,d.label=1;case 1:d.trys.push([1,11,12,17]),s=Tve(o),d.label=2;case 2:return[4,s.next()];case 3:return(l=d.sent()).done?[3,10]:(c=l.value,f=c.size,u&&f<=u?[4,Mme(e,c)]:[3,5]);case 4:return d.sent(),[3,9];case 5:return a?[4,a(c,function(v,m,g){return Ou(e,v,m,g)})]:[3,7];case 6:return d.sent(),[3,9];case 7:return[4,zme(e,c)];case 8:d.sent(),d.label=9;case 9:return[3,2];case 10:return[3,17];case 11:return p=d.sent(),r={error:p},[3,17];case 12:return d.trys.push([12,,15,16]),l&&!l.done&&(n=s.return)?[4,n.call(s)]:[3,14];case 13:d.sent(),d.label=14;case 14:return[3,16];case 15:if(r)throw r.error;return[7];case 16:return[7];case 17:return[2]}})})}var Vme=je([].join),Hme=W5!=Object,Ume=eM("join",",");Oo({target:"Array",proto:!0,forced:Hme||!Ume},{join:function(e){return Vme(ba(this),e===void 0?",":e)}}),gn&&(T.fn.append=gn),uo&&(T.fn.on=uo),Ns&&(T.fn.remove=Ns),ao&&(T.fn.val=ao),b7&&(T.fn.click=b7),_s&&(T.fn.hide=_s);var qme=(function(){function e(){this.title=ie("uploadImgModule.uploadImage"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M828.708571 585.045333a48.761905 48.761905 0 0 0-48.737523 48.761905v18.529524l-72.143238-72.167619a135.972571 135.972571 0 0 0-191.585524 0l-34.133334 34.133333-120.880762-120.953905a138.898286 138.898286 0 0 0-191.585523 0l-72.167619 72.167619V292.400762a48.786286 48.786286 0 0 1 48.761904-48.761905h341.23581a48.737524 48.737524 0 0 0 34.474667-83.285333 48.737524 48.737524 0 0 0-34.474667-14.287238H146.236952A146.212571 146.212571 0 0 0 0 292.400762v585.289143A146.358857 146.358857 0 0 0 146.236952 1024h584.996572a146.212571 146.212571 0 0 0 146.236952-146.310095V633.807238a48.786286 48.786286 0 0 0-48.761905-48.761905zM146.261333 926.45181a48.737524 48.737524 0 0 1-48.761904-48.761905v-174.128762l141.409523-141.458286a38.497524 38.497524 0 0 1 53.126096 0l154.526476 154.624 209.627428 209.724953H146.236952z m633.734096-48.761905c-0.073143 9.337905-3.145143 18.383238-8.777143 25.843809l-219.843048-220.94019 34.133333-34.133334a37.546667 37.546667 0 0 1 53.613715 0l140.873143 141.897143V877.714286zM1009.615238 160.231619L863.329524 13.897143a48.737524 48.737524 0 0 0-16.091429-10.24c-11.849143-4.87619-25.161143-4.87619-37.059047 0a48.761905 48.761905 0 0 0-16.067048 10.24l-146.236952 146.334476a49.005714 49.005714 0 0 0 69.217523 69.241905l62.902858-63.390476v272.627809a48.761905 48.761905 0 1 0 97.475047 0V166.083048l62.902857 63.390476a48.737524 48.737524 0 0 0 69.217524 0 48.761905 48.761905 0 0 0 0-69.241905z"></path></svg>',this.tag="button"}return e.prototype.getValue=function(t){return""},e.prototype.isActive=function(t){return!1},e.prototype.isDisabled=function(t){return K0(t)},e.prototype.getMenuConfig=function(t){return t.getMenuConfig("uploadImage")},e.prototype.exec=function(t,r){var n=this.getMenuConfig(t),o=n.allowedFileTypes,i=o===void 0?[]:o,a=n.customBrowseAndUpload;if(a)a(function(c,f,p){return Ou(t,c,f,p)});else{var u="";i.length>0&&(u='accept="'+i.join(", ")+'"');var s=T("body"),l=T('<input type="file" '+u+" multiple/>");l.hide(),s.append(l),l.click(),l.on("change",function(){var c=l[0].files;PM(t,c)})}},e})(),Wme={menus:[{key:"uploadImage",factory:function(){return new qme},config:{server:"",fieldName:"wangeditor-uploaded-image",maxFileSize:2097152,maxNumberOfFiles:100,allowedFileTypes:["image/*"],meta:{},metaWithUrl:!1,withCredentials:!1,timeout:1e4,onBeforeUpload:function(e){return e},onProgress:function(e){},onSuccess:function(e,t){},onFailed:function(e,t){console.error("'"+e.name+"' upload failed",t)},onError:function(e,t,r){console.error("'"+e.name+"' upload error",r)},base64LimitSize:0}}],editorPlugin:function(e){var t=e.insertData,r=e;return r.insertData=function(n){if(K0(r))t(n);else if(n.getData("text/plain"))t(n);else{var o=n.files;o.length<=0?t(n):Array.prototype.slice.call(o).some(function(i){return(function(a,u){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var l,c,f=s.call(a),p=[];try{for(;(u===void 0||u-- >0)&&!(l=f.next()).done;)p.push(l.value)}catch(d){c={error:d}}finally{try{l&&!l.done&&(s=f.return)&&s.call(f)}finally{if(c)throw c.error}}return p})(i.type.split("/"),1)[0]==="image"})?PM(e,o):t(n)}},r}};Vr("en",{highLightModule:{selectLang:"Language"}}),Vr("zh-CN",{highLightModule:{selectLang:"选择语言"}});var cy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function u3(e){var t={exports:{}};return e(t,t.exports),t.exports}var Da,fy,dy=function(e){return e&&e.Math==Math&&e},Re=dy(typeof globalThis=="object"&&globalThis)||dy(typeof window=="object"&&window)||dy(typeof self=="object"&&self)||dy(typeof cy=="object"&&cy)||(function(){return this})()||Function("return this")(),Gme=Object.defineProperty,s3=function(e,t){try{Gme(Re,e,{value:t,configurable:!0,writable:!0})}catch{Re[e]=t}return t},Sa=Re["__core-js_shared__"]||s3("__core-js_shared__",{}),l3=u3(function(e){(e.exports=function(t,r){return Sa[t]||(Sa[t]=r!==void 0?r:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})}),jM=Function.prototype,c3=jM.bind,f3=jM.call,Kme=c3&&c3.bind(f3),Qe=c3?function(e){return e&&Kme(f3,e)}:function(e){return e&&function(){return f3.apply(e,arguments)}},Yme=Re.TypeError,ic=function(e){if(e==null)throw Yme("Can't call method on "+e);return e},Xme=Re.Object,d3=function(e){return Xme(ic(e))},$me=Qe({}.hasOwnProperty),Tn=Object.hasOwn||function(e,t){return $me(d3(e),t)},Zme=0,Jme=Math.random(),Qme=Qe(1 .toString),NM=function(e){return"Symbol("+(e===void 0?"":e)+")_"+Qme(++Zme+Jme,36)},Tr=function(e){return typeof e=="function"},eye=function(e){return Tr(e)?e:void 0},Qp=function(e,t){return arguments.length<2?eye(Re[e]):Re[e]&&Re[e][t]},p3=Qp("navigator","userAgent")||"",RM=Re.process,IM=Re.Deno,LM=RM&&RM.versions||IM&&IM.version,MM=LM&&LM.v8;MM&&(fy=(Da=MM.split("."))[0]>0&&Da[0]<4?1:+(Da[0]+Da[1])),!fy&&p3&&(!(Da=p3.match(/Edge\/(\d+)/))||Da[1]>=74)&&(Da=p3.match(/Chrome\/(\d+)/))&&(fy=+Da[1]);var zM=fy,ur=function(e){try{return!!e()}catch{return!0}},h3=!!Object.getOwnPropertySymbols&&!ur(function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&zM&&zM<41}),g3=h3&&!Symbol.sham&&typeof Symbol.iterator=="symbol",eh=l3("wks"),as=Re.Symbol,VM=as&&as.for,tye=g3?as:as&&as.withoutSetter||NM,Aa=function(e){if(!Tn(eh,e)||!h3&&typeof eh[e]!="string"){var t="Symbol."+e;h3&&Tn(as,e)?eh[e]=as[e]:eh[e]=g3&&VM?VM(t):tye(t)}return eh[e]},HM={};HM[Aa("toStringTag")]="z";var v3=String(HM)==="[object z]",Fo=!ur(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),ai=function(e){return typeof e=="object"?e!==null:Tr(e)},m3=Re.document,rye=ai(m3)&&ai(m3.createElement),y3=function(e){return rye?m3.createElement(e):{}},UM=!Fo&&!ur(function(){return Object.defineProperty(y3("div"),"a",{get:function(){return 7}}).a!=7}),nye=Re.String,oye=Re.TypeError,Xn=function(e){if(ai(e))return e;throw oye(nye(e)+" is not an object")},th=Function.prototype.call,sr=th.bind?th.bind(th):function(){return th.apply(th,arguments)},qM=Qe({}.isPrototypeOf),iye=Re.Object,b3=g3?function(e){return typeof e=="symbol"}:function(e){var t=Qp("Symbol");return Tr(t)&&qM(t.prototype,iye(e))},aye=Re.String,WM=function(e){try{return aye(e)}catch{return"Object"}},uye=Re.TypeError,GM=function(e){if(Tr(e))return e;throw uye(WM(e)+" is not a function")},KM=function(e,t){var r=e[t];return r==null?void 0:GM(r)},sye=Re.TypeError,lye=Re.TypeError,cye=Aa("toPrimitive"),w3=function(e){var t=(function(r,n){if(!ai(r)||b3(r))return r;var o,i=KM(r,cye);if(i){if(o=sr(i,r,n),!ai(o)||b3(o))return o;throw lye("Can't convert object to primitive value")}return(function(a,u){var s,l;if(Tr(s=a.toString)&&!ai(l=sr(s,a))||Tr(s=a.valueOf)&&!ai(l=sr(s,a)))return l;throw sye("Can't convert object to primitive value")})(r)})(e,"string");return b3(t)?t:t+""},fye=Re.TypeError,YM=Object.defineProperty,py={f:Fo?YM:function(e,t,r){if(Xn(e),t=w3(t),Xn(r),UM)try{return YM(e,t,r)}catch{}if("get"in r||"set"in r)throw fye("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},E3=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ac=Fo?function(e,t,r){return py.f(e,t,E3(1,r))}:function(e,t,r){return e[t]=r,e},dye=Qe(Function.toString);Tr(Sa.inspectSource)||(Sa.inspectSource=function(e){return dye(e)});var C3,hy,x3,D3=Sa.inspectSource,XM=Re.WeakMap,pye=Tr(XM)&&/native code/.test(D3(XM)),$M=l3("keys"),ZM=function(e){return $M[e]||($M[e]=NM(e))},S3={},JM=Re.TypeError,hye=Re.WeakMap;if(pye||Sa.state){var us=Sa.state||(Sa.state=new hye),gye=Qe(us.get),QM=Qe(us.has),vye=Qe(us.set);C3=function(e,t){if(QM(us,e))throw new JM("Object already initialized");return t.facade=e,vye(us,e,t),t},hy=function(e){return gye(us,e)||{}},x3=function(e){return QM(us,e)}}else{var uc=ZM("state");S3[uc]=!0,C3=function(e,t){if(Tn(e,uc))throw new JM("Object already initialized");return t.facade=e,ac(e,uc,t),t},hy=function(e){return Tn(e,uc)?e[uc]:{}},x3=function(e){return Tn(e,uc)}}var A3={get:hy,enforce:function(e){return x3(e)?hy(e):C3(e,{})}},ez=Function.prototype,mye=Fo&&Object.getOwnPropertyDescriptor,tz=Tn(ez,"name"),rz={PROPER:tz&&(function(){}).name==="something",CONFIGURABLE:tz&&(!Fo||Fo&&mye(ez,"name").configurable)},rh=u3(function(e){var t=rz.CONFIGURABLE,r=A3.get,n=A3.enforce,o=String(String).split("String");(e.exports=function(i,a,u,s){var l,c=!!s&&!!s.unsafe,f=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet,d=s&&s.name!==void 0?s.name:a;Tr(u)&&(String(d).slice(0,7)==="Symbol("&&(d="["+String(d).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Tn(u,"name")||t&&u.name!==d)&&ac(u,"name",d),(l=n(u)).source||(l.source=o.join(typeof d=="string"?d:""))),i!==Re?(c?!p&&i[a]&&(f=!0):delete i[a],f?i[a]=u:ac(i,a,u)):f?i[a]=u:s3(a,u)})(Function.prototype,"toString",function(){return Tr(this)&&r(this).source||D3(this)})}),yye=Qe({}.toString),bye=Qe("".slice),ka=function(e){return bye(yye(e),8,-1)},wye=Aa("toStringTag"),Eye=Re.Object,Cye=ka((function(){return arguments})())=="Arguments",k3=v3?ka:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=(function(o,i){try{return o[i]}catch{}})(t=Eye(e),wye))=="string"?r:Cye?ka(t):(n=ka(t))=="Object"&&Tr(t.callee)?"Arguments":n},xye=v3?{}.toString:function(){return"[object "+k3(this)+"]"};v3||rh(Object.prototype,"toString",xye,{unsafe:!0});var nz,oz={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},O3=y3("span").classList,iz=O3&&O3.constructor&&O3.constructor.prototype,Dye=iz===Object.prototype?void 0:iz,az=Qe(Qe.bind),B3=Re.Object,Sye=Qe("".split),F3=ur(function(){return!B3("z").propertyIsEnumerable(0)})?function(e){return ka(e)=="String"?Sye(e,""):B3(e)}:B3,Aye=Math.ceil,kye=Math.floor,_3=function(e){var t=+e;return t!=t||t===0?0:(t>0?kye:Aye)(t)},Oye=Math.min,uz=function(e){return e>0?Oye(_3(e),9007199254740991):0},T3=function(e){return uz(e.length)},sz=Array.isArray||function(e){return ka(e)=="Array"},lz=function(){},Bye=[],cz=Qp("Reflect","construct"),P3=/^\s*(?:class|function)\b/,Fye=Qe(P3.exec),_ye=!P3.exec(lz),nh=function(e){if(!Tr(e))return!1;try{return cz(lz,Bye,e),!0}catch{return!1}},fz=!cz||ur(function(){var e;return nh(nh.call)||!nh(Object)||!nh(function(){e=!0})||e})?function(e){if(!Tr(e))return!1;switch(k3(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return _ye||!!Fye(P3,D3(e))}:nh,Tye=Aa("species"),dz=Re.Array,Pye=function(e,t){return new((function(r){var n;return sz(r)&&(n=r.constructor,(fz(n)&&(n===dz||sz(n.prototype))||ai(n)&&(n=n[Tye])===null)&&(n=void 0)),n===void 0?dz:n})(e))(t===0?0:t)},pz=Qe([].push),Oa=function(e){var t=e==1,r=e==2,n=e==3,o=e==4,i=e==6,a=e==7,u=e==5||i;return function(s,l,c,f){for(var p,d,v=d3(s),m=F3(v),g=(function(x,A){return GM(x),A===void 0?x:az?az(x,A):function(){return x.apply(A,arguments)}})(l,c),y=T3(m),h=0,b=f||Pye,w=t?b(s,y):r||a?b(s,0):void 0;y>h;h++)if((u||h in m)&&(d=g(p=m[h],h,v),e))if(t)w[h]=d;else if(d)switch(e){case 3:return!0;case 5:return p;case 6:return h;case 2:pz(w,p)}else switch(e){case 4:return!1;case 7:pz(w,p)}return i?-1:n||o?o:w}},jye=[Oa(0),Oa(1),Oa(2),Oa(3),Oa(4),Oa(5),Oa(6),Oa(7)][0],j3=(nz=[].forEach)&&ur(function(){nz.call(null,function(){throw 1},1)})?[].forEach:function(e){return jye(this,e,arguments.length>1?arguments[1]:void 0)},hz=function(e){if(e&&e.forEach!==j3)try{ac(e,"forEach",j3)}catch{e.forEach=j3}};for(var N3 in oz)oz[N3]&&hz(Re[N3]&&Re[N3].prototype);hz(Dye);var gz={}.propertyIsEnumerable,vz=Object.getOwnPropertyDescriptor,mz={f:vz&&!gz.call({1:2},1)?function(e){var t=vz(this,e);return!!t&&t.enumerable}:gz},gy=function(e){return F3(ic(e))},yz=Object.getOwnPropertyDescriptor,bz={f:Fo?yz:function(e,t){if(e=gy(e),t=w3(t),UM)try{return yz(e,t)}catch{}if(Tn(e,t))return E3(!sr(mz.f,e,t),e[t])}},Nye=Math.max,Rye=Math.min,R3=function(e,t){var r=_3(e);return r<0?Nye(r+t,0):Rye(r,t)},Iye=function(e){return function(t,r,n){var o,i=gy(t),a=T3(i),u=R3(n,a);if(e&&r!=r){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}},Lye=Iye(!1),wz=Qe([].push),Ez=function(e,t){var r,n=gy(e),o=0,i=[];for(r in n)!Tn(S3,r)&&Tn(n,r)&&wz(i,r);for(;t.length>o;)Tn(n,r=t[o++])&&(~Lye(i,r)||wz(i,r));return i},vy=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Mye=vy.concat("length","prototype"),zye={f:Object.getOwnPropertyNames||function(e){return Ez(e,Mye)}},Cz={f:Object.getOwnPropertySymbols},Vye=Qe([].concat),Hye=Qp("Reflect","ownKeys")||function(e){var t=zye.f(Xn(e)),r=Cz.f;return r?Vye(t,r(e)):t},Uye=function(e,t){for(var r=Hye(t),n=py.f,o=bz.f,i=0;i<r.length;i++){var a=r[i];Tn(e,a)||n(e,a,o(t,a))}},qye=/#|\.prototype\./,oh=function(e,t){var r=Gye[Wye(e)];return r==Yye||r!=Kye&&(Tr(t)?ur(t):!!t)},Wye=oh.normalize=function(e){return String(e).replace(qye,".").toLowerCase()},Gye=oh.data={},Kye=oh.NATIVE="N",Yye=oh.POLYFILL="P",Xye=oh,$ye=bz.f,my=function(e,t){var r,n,o,i,a,u=e.target,s=e.global,l=e.stat;if(r=s?Re:l?Re[u]||s3(u,{}):(Re[u]||{}).prototype)for(n in t){if(i=t[n],o=e.noTargetGet?(a=$ye(r,n))&&a.value:r[n],!Xye(s?n:u+(l?".":"#")+n,e.forced)&&o!==void 0){if(typeof i==typeof o)continue;Uye(i,o)}(e.sham||o&&o.sham)&&ac(i,"sham",!0),rh(r,n,i,e)}},yy=Object.keys||function(e){return Ez(e,vy)},sc=Object.assign,xz=Object.defineProperty,Zye=Qe([].concat),Dz=!sc||ur(function(){if(Fo&&sc({b:1},sc(xz({},"a",{enumerable:!0,get:function(){xz(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(o){t[o]=o}),sc({},e)[r]!=7||yy(sc({},t)).join("")!=n})?function(e,t){for(var r=d3(e),n=arguments.length,o=1,i=Cz.f,a=mz.f;n>o;)for(var u,s=F3(arguments[o++]),l=i?Zye(yy(s),i(s)):yy(s),c=l.length,f=0;c>f;)u=l[f++],Fo&&!sr(a,s,u)||(r[u]=s[u]);return r}:sc;my({target:"Object",stat:!0,forced:Object.assign!==Dz},{assign:Dz});var Sz=u3(function(e){var t=(function(r){var n=/\blang(?:uage)?-([\w-]+)\b/i,o=0,i={},a={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function g(y){return y instanceof u?new u(y.type,g(y.content),y.alias):Array.isArray(y)?y.map(g):y.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++o}),g.__id},clone:function g(y,h){var b,w;switch(h=h||{},a.util.type(y)){case"Object":if(w=a.util.objId(y),h[w])return h[w];for(var x in b={},h[w]=b,y)y.hasOwnProperty(x)&&(b[x]=g(y[x],h));return b;case"Array":return w=a.util.objId(y),h[w]?h[w]:(b=[],h[w]=b,y.forEach(function(A,S){b[S]=g(A,h)}),b);default:return y}},getLanguage:function(g){for(;g&&!n.test(g.className);)g=g.parentElement;return g?(g.className.match(n)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(b){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(b.stack)||[])[1];if(g){var y=document.getElementsByTagName("script");for(var h in y)if(y[h].src==g)return y[h]}return null}},isActive:function(g,y,h){for(var b="no-"+y;g;){var w=g.classList;if(w.contains(y))return!0;if(w.contains(b))return!1;g=g.parentElement}return!!h}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(g,y){var h=a.util.clone(a.languages[g]);for(var b in y)h[b]=y[b];return h},insertBefore:function(g,y,h,b){var w=(b=b||a.languages)[g],x={};for(var A in w)if(w.hasOwnProperty(A)){if(A==y)for(var S in h)h.hasOwnProperty(S)&&(x[S]=h[S]);h.hasOwnProperty(A)||(x[A]=w[A])}var B=b[g];return b[g]=x,a.languages.DFS(a.languages,function(P,H){H===B&&P!=g&&(this[P]=x)}),x},DFS:function g(y,h,b,w){w=w||{};var x=a.util.objId;for(var A in y)if(y.hasOwnProperty(A)){h.call(y,A,y[A],b||A);var S=y[A],B=a.util.type(S);B!=="Object"||w[x(S)]?B!=="Array"||w[x(S)]||(w[x(S)]=!0,g(S,h,A,w)):(w[x(S)]=!0,g(S,h,null,w))}}},plugins:{},highlightAll:function(g,y){a.highlightAllUnder(document,g,y)},highlightAllUnder:function(g,y,h){var b={callback:h,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};a.hooks.run("before-highlightall",b),b.elements=Array.prototype.slice.apply(b.container.querySelectorAll(b.selector)),a.hooks.run("before-all-elements-highlight",b);for(var w,x=0;w=b.elements[x++];)a.highlightElement(w,y===!0,b.callback)},highlightElement:function(g,y,h){var b=a.util.getLanguage(g),w=a.languages[b];g.className=g.className.replace(n,"").replace(/\s+/g," ")+" language-"+b;var x=g.parentElement;x&&x.nodeName.toLowerCase()==="pre"&&(x.className=x.className.replace(n,"").replace(/\s+/g," ")+" language-"+b);var A={element:g,language:b,grammar:w,code:g.textContent};function S(P){A.highlightedCode=P,a.hooks.run("before-insert",A),A.element.innerHTML=A.highlightedCode,a.hooks.run("after-highlight",A),a.hooks.run("complete",A),h&&h.call(A.element)}if(a.hooks.run("before-sanity-check",A),(x=A.element.parentElement)&&x.nodeName.toLowerCase()==="pre"&&!x.hasAttribute("tabindex")&&x.setAttribute("tabindex","0"),!A.code)return a.hooks.run("complete",A),void(h&&h.call(A.element));if(a.hooks.run("before-highlight",A),A.grammar)if(y&&r.Worker){var B=new Worker(a.filename);B.onmessage=function(P){S(P.data)},B.postMessage(JSON.stringify({language:A.language,code:A.code,immediateClose:!0}))}else S(a.highlight(A.code,A.grammar,A.language));else S(a.util.encode(A.code))},highlight:function(g,y,h){var b={code:g,grammar:y,language:h};return a.hooks.run("before-tokenize",b),b.tokens=a.tokenize(b.code,b.grammar),a.hooks.run("after-tokenize",b),u.stringify(a.util.encode(b.tokens),b.language)},tokenize:function(g,y){var h=y.rest;if(h){for(var b in h)y[b]=h[b];delete y.rest}var w=new c;return f(w,w.head,g),l(g,w,y,w.head,0),(function(x){for(var A=[],S=x.head.next;S!==x.tail;)A.push(S.value),S=S.next;return A})(w)},hooks:{all:{},add:function(g,y){var h=a.hooks.all;h[g]=h[g]||[],h[g].push(y)},run:function(g,y){var h=a.hooks.all[g];if(h&&h.length)for(var b,w=0;b=h[w++];)b(y)}},Token:u};function u(g,y,h,b){this.type=g,this.content=y,this.alias=h,this.length=0|(b||"").length}function s(g,y,h,b){g.lastIndex=y;var w=g.exec(h);if(w&&b&&w[1]){var x=w[1].length;w.index+=x,w[0]=w[0].slice(x)}return w}function l(g,y,h,b,w,x){for(var A in h)if(h.hasOwnProperty(A)&&h[A]){var S=h[A];S=Array.isArray(S)?S:[S];for(var B=0;B<S.length;++B){if(x&&x.cause==A+","+B)return;var P=S[B],H=P.inside,U=!!P.lookbehind,W=!!P.greedy,C=P.alias;if(W&&!P.pattern.global){var z=P.pattern.toString().match(/[imsuy]*$/)[0];P.pattern=RegExp(P.pattern.source,z+"g")}for(var k=P.pattern||P,I=b.next,Y=w;I!==y.tail&&!(x&&Y>=x.reach);Y+=I.value.length,I=I.next){var $=I.value;if(y.length>g.length)return;if(!($ instanceof u)){var ee,Q=1;if(W){if(!(ee=s(k,Y,g,U)))break;var F=ee.index,O=ee.index+ee[0].length,j=Y;for(j+=I.value.length;F>=j;)j+=(I=I.next).value.length;if(Y=j-=I.value.length,I.value instanceof u)continue;for(var N=I;N!==y.tail&&(j<O||typeof N.value=="string");N=N.next)Q++,j+=N.value.length;Q--,$=g.slice(Y,j),ee.index-=Y}else if(!(ee=s(k,0,$,U)))continue;F=ee.index;var q=ee[0],G=$.slice(0,F),te=$.slice(F+q.length),fe=Y+$.length;x&&fe>x.reach&&(x.reach=fe);var de=I.prev;if(G&&(de=f(y,de,G),Y+=G.length),p(y,de,Q),I=f(y,de,new u(A,H?a.tokenize(q,H):q,C,q)),te&&f(y,I,te),Q>1){var he={cause:A+","+B,reach:fe};l(g,y,h,I.prev,Y,he),x&&he.reach>x.reach&&(x.reach=he.reach)}}}}}}function c(){var g={value:null,prev:null,next:null},y={value:null,prev:g,next:null};g.next=y,this.head=g,this.tail=y,this.length=0}function f(g,y,h){var b=y.next,w={value:h,prev:y,next:b};return y.next=w,b.prev=w,g.length++,w}function p(g,y,h){for(var b=y.next,w=0;w<h&&b!==g.tail;w++)b=b.next;y.next=b,b.prev=y,g.length-=w}if(r.Prism=a,u.stringify=function g(y,h){if(typeof y=="string")return y;if(Array.isArray(y)){var b="";return y.forEach(function(B){b+=g(B,h)}),b}var w={type:y.type,content:g(y.content,h),tag:"span",classes:["token",y.type],attributes:{},language:h},x=y.alias;x&&(Array.isArray(x)?Array.prototype.push.apply(w.classes,x):w.classes.push(x)),a.hooks.run("wrap",w);var A="";for(var S in w.attributes)A+=" "+S+'="'+(w.attributes[S]||"").replace(/"/g,"&quot;")+'"';return"<"+w.tag+' class="'+w.classes.join(" ")+'"'+A+">"+w.content+"</"+w.tag+">"},!r.document)return r.addEventListener&&(a.disableWorkerMessageHandler||r.addEventListener("message",function(g){var y=JSON.parse(g.data),h=y.language,b=y.code,w=y.immediateClose;r.postMessage(a.highlight(b,a.languages[h],h)),w&&r.close()},!1)),a;var d=a.util.currentScript();function v(){a.manual||a.highlightAll()}if(d&&(a.filename=d.src,d.hasAttribute("data-manual")&&(a.manual=!0)),!a.manual){var m=document.readyState;m==="loading"||m==="interactive"&&d&&d.defer?document.addEventListener("DOMContentLoaded",v):window.requestAnimationFrame?window.requestAnimationFrame(v):window.setTimeout(v,16)}return a})(typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=t),cy!==void 0&&(cy.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside["attr-value"].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside["internal-subset"].inside=t.languages.markup,t.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(r,n){var o={};o["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},o.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:o}};i["language-"+n]={pattern:/[\s\S]+/,inside:t.languages[n]};var a={};a[r]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:i},t.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(t.languages.markup.tag,"addAttribute",{value:function(r,n){t.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:t.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),t.languages.html=t.languages.markup,t.languages.mathml=t.languages.markup,t.languages.svg=t.languages.markup,t.languages.xml=t.languages.extend("markup",{}),t.languages.ssml=t.languages.xml,t.languages.atom=t.languages.xml,t.languages.rss=t.languages.xml,(function(r){var n=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+n.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+n.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+n.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:n,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))})(t),t.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},t.languages.javascript=t.languages.extend("clike",{"class-name":[t.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),t.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,t.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:t.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:t.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:t.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:t.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),t.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:t.languages.javascript}},string:/[\s\S]+/}}}),t.languages.markup&&(t.languages.markup.tag.addInlined("script","javascript"),t.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),t.languages.js=t.languages.javascript,(function(){if(t!==void 0&&typeof document<"u"){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},n="data-src-status",o='pre[data-src]:not([data-src-status="loaded"]):not([data-src-status="loading"])',i=/\blang(?:uage)?-([\w-]+)\b/i;t.hooks.add("before-highlightall",function(s){s.selector+=", "+o}),t.hooks.add("before-sanity-check",function(s){var l=s.element;if(l.matches(o)){s.code="",l.setAttribute(n,"loading");var c=l.appendChild(document.createElement("CODE"));c.textContent="Loading…";var f=l.getAttribute("data-src"),p=s.language;if(p==="none"){var d=(/\.(\w+)$/.exec(f)||[,"none"])[1];p=r[d]||d}u(c,p),u(l,p);var v=t.plugins.autoloader;v&&v.loadLanguages(p);var m=new XMLHttpRequest;m.open("GET",f,!0),m.onreadystatechange=function(){m.readyState==4&&(m.status<400&&m.responseText?(l.setAttribute(n,"loaded"),c.textContent=m.responseText,t.highlightElement(c)):(l.setAttribute(n,"failed"),m.status>=400?c.textContent="✖ Error "+m.status+" while fetching file: "+m.statusText:c.textContent="✖ Error: File does not exist or is empty"))},m.send(null)}}),t.plugins.fileHighlight={highlight:function(s){for(var l,c=(s||document).querySelectorAll(o),f=0;l=c[f++];)t.highlightElement(l)}};var a=!1;t.fileHighlight=function(){a||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),a=!0),t.plugins.fileHighlight.highlight.apply(this,arguments)}}function u(s,l){var c=s.className;c=c.replace(i," ")+" language-"+l,s.className=c.replace(/\s+/g," ").trim()}})()});(function(e){var t=e.util.clone(e.languages.javascript),r=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,n=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(s,l){return s=s.replace(/<S>/g,function(){return r}).replace(/<BRACES>/g,function(){return n}).replace(/<SPREAD>/g,function(){return o}),RegExp(s,l)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/i,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/i,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx},alias:"language-javascript"}},e.languages.jsx.tag);var a=function(s){return s?typeof s=="string"?s:typeof s.content=="string"?s.content:s.content.map(a).join(""):""},u=function(s){for(var l=[],c=0;c<s.length;c++){var f=s[c],p=!1;if(typeof f!="string"&&(f.type==="tag"&&f.content[0]&&f.content[0].type==="tag"?f.content[0].content[0].content==="</"?l.length>0&&l[l.length-1].tagName===a(f.content[0].content[1])&&l.pop():f.content[f.content.length-1].content==="/>"||l.push({tagName:a(f.content[0].content[1]),openedBraces:0}):l.length>0&&f.type==="punctuation"&&f.content==="{"?l[l.length-1].openedBraces++:l.length>0&&l[l.length-1].openedBraces>0&&f.type==="punctuation"&&f.content==="}"?l[l.length-1].openedBraces--:p=!0),(p||typeof f=="string")&&l.length>0&&l[l.length-1].openedBraces===0){var d=a(f);c<s.length-1&&(typeof s[c+1]=="string"||s[c+1].type==="plain-text")&&(d+=a(s[c+1]),s.splice(c+1,1)),c>0&&(typeof s[c-1]=="string"||s[c-1].type==="plain-text")&&(d=a(s[c-1])+d,s.splice(c-1,1),c--),s[c]=new e.Token("plain-text",d,null,d)}f.content&&typeof f.content!="string"&&u(f.content)}};e.hooks.add("after-tokenize",function(s){s.language!=="jsx"&&s.language!=="tsx"||u(s.tokens)})})(Prism),(function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:string|Function|any|number|boolean|Array|symbol|console|Promise|unknown|never)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|as|declare|implements|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter;var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript})(Prism),Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){e.type==="entity"&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var r={};r["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var n={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};n["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:n},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml,Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,number:/(?:\b0x[a-f\d]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[-+]?\d+)?)i?/i,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/}),delete Prism.languages.go["class-name"],(function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],n=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,o=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,i=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/i,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:bool|boolean|int|integer|float|string|object|array)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:bool|int|float|string|object|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*[\w|]\|\s*)(?:null|false)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|self|static|callable|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?[\w|]\|\s*)(?:null|false)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:bool|int|float|string|object|void|array(?!\s*\()|mixed|iterable|(?:null|false)(?=\s*\|))\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:null|false)\b/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:__halt_compiler|abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|namespace|match|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:n,operator:o,punctuation:i};var a={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},u=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:a}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:a}}];e.languages.insertBefore("php","variable",{string:u,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:u,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:n,operator:o,punctuation:i}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",function(s){/<\?/.test(s.code)&&e.languages["markup-templating"].buildPlaceholders(s,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/gi)}),e.hooks.add("after-tokenize",function(s){e.languages["markup-templating"].tokenizePlaceholders(s,"php")})})(Prism),Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:__attribute__|_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean,Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,(function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,r=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,n={pattern:RegExp(r+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{"class-name":[n,{pattern:RegExp(r+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:n.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":n,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(Prism),(function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,r=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:module|import)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return r})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])})(Prism),(function(e){function t(O,j){return O.replace(/<<(\d+)>>/g,function(N,q){return"(?:"+j[+q]+")"})}function r(O,j,N){return RegExp(t(O,j),"")}function n(O,j){for(var N=0;N<j;N++)O=O.replace(/<<self>>/g,function(){return"(?:"+O+")"});return O.replace(/<<self>>/g,"[^\\s\\S]")}var o="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",i="class enum interface record struct",a="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",u="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function s(O){return"\\b(?:"+O.trim().replace(/ /g,"|")+")\\b"}var l=s(i),c=RegExp(s(o+" "+i+" "+a+" "+u)),f=s(i+" "+a+" "+u),p=s(o+" "+i+" "+u),d=n(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),v=n(/\((?:[^()]|<<self>>)*\)/.source,2),m=/@?\b[A-Za-z_]\w*\b/.source,g=t(/<<0>>(?:\s*<<1>>)?/.source,[m,d]),y=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[f,g]),h=/\[\s*(?:,\s*)*\]/.source,b=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[y,h]),w=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[d,v,h]),x=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),A=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[x,y,h]),S={keyword:c,punctuation:/[<>()?,.:[\]]/},B=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,P=/"(?:\\.|[^\\"\r\n])*"/.source,H=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[H]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[P]),lookbehind:!0,greedy:!0},{pattern:RegExp(B),greedy:!0,alias:"character"}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[m,A]),lookbehind:!0,inside:S},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[m]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[l,g]),lookbehind:!0,inside:S},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[y]),lookbehind:!0,inside:S},{pattern:r(/(\bwhere\s+)<<0>>/.source,[m]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[A,p,m]),inside:S}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[m]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[m]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|typeof|sizeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[v]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[A,y]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[A]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[m,d]),inside:{function:r(/^<<0>>/.source,[m]),generic:{pattern:RegExp(d),alias:"class-name",inside:S}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,g,m,A,c.source,v,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[g,v]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(A),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var U=P+"|"+B,W=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[U]),C=n(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[W]),2),z=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,k=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[y,C]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[z,k]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[z]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[C]),inside:e.languages.csharp},"class-name":{pattern:RegExp(y),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var I=/:[^}\r\n]+/.source,Y=n(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[W]),2),$=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Y,I]),ee=n(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[U]),2),Q=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[ee,I]);function F(O,j){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[O]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[j,I]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[$]),lookbehind:!0,greedy:!0,inside:F($,Y)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[Q]),lookbehind:!0,greedy:!0,inside:F(Q,ee)}]})})(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:"comment",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:"builtin"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages["visual-basic"],Prism.languages.vba=Prism.languages["visual-basic"],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},(function(e){e.languages.ruby=e.languages.extend("clike",{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"tag"},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore("ruby","keyword",{regex:[{pattern:RegExp(/%r/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:{pattern:/(^|[^:]):[a-zA-Z_]\w*(?:[?!]|\b)/,lookbehind:!0},"method-definition":{pattern:/(\bdef\s+)[\w.]+/,lookbehind:!0,inside:{function:/\w+$/,rest:e.languages.ruby}}}),e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Stat|Fixnum|Float|Hash|Integer|IO|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|String|Struct|TMS|Symbol|ThreadGroup|Thread|Time|TrueClass)\b/,constant:/\b[A-Z]\w*(?:[?!]|\b)/}),e.languages.ruby.string=[{pattern:RegExp(/%[qQiIwWxs]?/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S])*\)/.source,/\{(?:[^#{}\\]|#(?:\{[^}]+\})?|\\[\s\S])*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S])*\]/.source,/<(?:[^<>\\]|\\[\s\S])*>/.source].join("|")+")"),greedy:!0,inside:{interpolation:t}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?/}},interpolation:t}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|[a-z_]\w*$/i,alias:"symbol",inside:{punctuation:/^<<[-~]?'|'$/}}}}],e.languages.rb=e.languages.ruby})(Prism),Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:true|false)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:true|false)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift}),(function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},n={bash:r,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:n.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=n.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash})(Prism),(function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(l){return l=l.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+l+")")}var n=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return n}),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"font-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(n),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(l){["url","bold","italic","strike","code-snippet"].forEach(function(c){l!==c&&(e.languages.markdown[l].inside.content.inside[c]=e.languages.markdown[c])})}),e.hooks.add("after-tokenize",function(l){l.language!=="markdown"&&l.language!=="md"||(function c(f){if(f&&typeof f!="string")for(var p=0,d=f.length;p<d;p++){var v=f[p];if(v.type==="code"){var m=v.content[1],g=v.content[3];if(m&&g&&m.type==="code-language"&&g.type==="code-block"&&typeof m.content=="string"){var y=m.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),h="language-"+(y=(/[a-z][\w-]*/i.exec(y)||[""])[0].toLowerCase());g.alias?typeof g.alias=="string"?g.alias=[g.alias,h]:g.alias.push(h):g.alias=[h]}}else c(v.content)}})(l.tokens)}),e.hooks.add("wrap",function(l){if(l.type==="code-block"){for(var c="",f=0,p=l.classes.length;f<p;f++){var d=l.classes[f],v=/language-(.+)/.exec(d);if(v){c=v[1];break}}var m=e.languages[c];if(m)l.content=e.highlight((function(y){var h=y.replace(a,"");return h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,w){var x;return(w=w.toLowerCase())[0]==="#"?(x=w[1]==="x"?parseInt(w.slice(2),16):Number(w.slice(1)),s(x)):u[w]||b})})(l.content),m,c);else if(c&&c!=="none"&&e.plugins.autoloader){var g="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());l.attributes.id=g,e.plugins.autoloader.loadLanguages(c,function(){var y=document.getElementById(g);y&&(y.innerHTML=e.highlight(y.textContent,e.languages[c],c))})}}});var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),u={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown})(Prism),Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/},Prism.languages.groovy=Prism.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:as|def|in|abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),Prism.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),Prism.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:setup|given|when|then|and|cleanup|expect|where):/}),Prism.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),Prism.hooks.add("wrap",function(e){if(e.language==="groovy"&&e.type==="string"){var t=e.content[0];if(t!="'"){var r=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;t==="$"&&(r=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),e.content=e.content.replace(/&lt;/g,"<").replace(/&amp;/g,"&"),e.content=Prism.highlight(e.content,{expression:{pattern:r,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t==="/"?"regex":"gstring")}}});var Jye=["comment","prolog","doctype","cdata","punctuation","namespace","property","tag","boolean","number","constant","symbol","deleted","selector","attr-name","string","builtin","inserted","operator","entity","url","string","atrule","attr-value","keyword","function","class-name","regex","important","variable","bold","italic","entity","char"];function Az(e){return typeof e=="string"?e.length:typeof e.content=="string"?e.content.length:e.content.reduce(function(t,r){return t+Az(r)},0)}var by,Qye=Re.String,ui=function(e){if(k3(e)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return Qye(e)},kz=function(){var e=Xn(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},I3=Re.RegExp,L3=ur(function(){var e=I3("a","y");return e.lastIndex=2,e.exec("abcd")!=null});L3||ur(function(){return!I3("a","y").sticky});var Oz={BROKEN_CARET:L3||ur(function(){var e=I3("^r","gy");return e.lastIndex=2,e.exec("str")!=null}),UNSUPPORTED_Y:L3},e1e=Fo?Object.defineProperties:function(e,t){Xn(e);for(var r,n=gy(t),o=yy(t),i=o.length,a=0;i>a;)py.f(e,r=o[a++],n[r]);return e},t1e=Qp("document","documentElement"),Bz=ZM("IE_PROTO"),M3=function(){},Fz=function(e){return"<script>"+e+"<\/script>"},_z=function(e){e.write(Fz("")),e.close();var t=e.parentWindow.Object;return e=null,t},wy=function(){try{by=new ActiveXObject("htmlfile")}catch{}var e,t;wy=typeof document<"u"?document.domain&&by?_z(by):((t=y3("iframe")).style.display="none",t1e.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(Fz("document.F=Object")),e.close(),e.F):_z(by);for(var r=vy.length;r--;)delete wy.prototype[vy[r]];return wy()};S3[Bz]=!0;var Tz,z3,r1e=Object.create||function(e,t){var r;return e!==null?(M3.prototype=Xn(e),r=new M3,M3.prototype=null,r[Bz]=e):r=wy(),t===void 0?r:e1e(r,t)},n1e=Re.RegExp,o1e=ur(function(){var e=n1e(".","s");return!(e.dotAll&&e.exec(`
78
+ `)&&e.flags==="s")}),i1e=Re.RegExp,a1e=ur(function(){var e=i1e("(?<a>b)","g");return e.exec("b").groups.a!=="b"||"b".replace(e,"$<a>c")!=="bc"}),u1e=A3.get,s1e=l3("native-string-replace",String.prototype.replace),Ey=RegExp.prototype.exec,V3=Ey,l1e=Qe("".charAt),c1e=Qe("".indexOf),f1e=Qe("".replace),H3=Qe("".slice),U3=(z3=/b*/g,sr(Ey,Tz=/a/,"a"),sr(Ey,z3,"a"),Tz.lastIndex!==0||z3.lastIndex!==0),Pz=Oz.BROKEN_CARET,q3=/()??/.exec("")[1]!==void 0;(U3||q3||Pz||o1e||a1e)&&(V3=function(e){var t,r,n,o,i,a,u,s=this,l=u1e(s),c=ui(e),f=l.raw;if(f)return f.lastIndex=s.lastIndex,t=sr(V3,f,c),s.lastIndex=f.lastIndex,t;var p=l.groups,d=Pz&&s.sticky,v=sr(kz,s),m=s.source,g=0,y=c;if(d&&(v=f1e(v,"y",""),c1e(v,"g")===-1&&(v+="g"),y=H3(c,s.lastIndex),s.lastIndex>0&&(!s.multiline||s.multiline&&l1e(c,s.lastIndex-1)!==`
79
+ `)&&(m="(?: "+m+")",y=" "+y,g++),r=new RegExp("^(?:"+m+")",v)),q3&&(r=new RegExp("^"+m+"$(?!\\s)",v)),U3&&(n=s.lastIndex),o=sr(Ey,d?r:s,y),d?o?(o.input=H3(o.input,g),o[0]=H3(o[0],g),o.index=s.lastIndex,s.lastIndex+=o[0].length):s.lastIndex=0:U3&&o&&(s.lastIndex=s.global?o.index+o[0].length:n),q3&&o&&o.length>1&&sr(s1e,o[0],r,function(){for(i=1;i<arguments.length-2;i++)arguments[i]===void 0&&(o[i]=void 0)}),o&&p)for(o.groups=a=r1e(null),i=0;i<p.length;i++)a[(u=p[i])[0]]=o[u[1]];return o});var ih=V3;my({target:"RegExp",proto:!0,forced:/./.exec!==ih},{exec:ih});var W3=Function.prototype,jz=W3.apply,d1e=W3.bind,Nz=W3.call,p1e=typeof Reflect=="object"&&Reflect.apply||(d1e?Nz.bind(jz):function(){return Nz.apply(jz,arguments)}),h1e=Aa("species"),G3=RegExp.prototype,g1e=Aa("match"),v1e=Re.TypeError,m1e=Aa("species"),y1e=Qe("".charAt),Rz=Qe("".charCodeAt),b1e=Qe("".slice),w1e=function(e){return function(t,r){var n,o,i=ui(ic(t)),a=_3(r),u=i.length;return a<0||a>=u?e?"":void 0:(n=Rz(i,a))<55296||n>56319||a+1===u||(o=Rz(i,a+1))<56320||o>57343?e?y1e(i,a):n:e?b1e(i,a,a+2):o-56320+(n-55296<<10)+65536}},E1e=w1e(!0),C1e=function(e,t,r){return t+(r?E1e(e,t).length:1)},x1e=Re.Array,D1e=Math.max,Iz=function(e,t,r){for(var n,o,i,a,u=T3(e),s=R3(t,u),l=R3(r===void 0?u:r,u),c=x1e(D1e(l-s,0)),f=0;s<l;s++,f++)n=c,o=f,i=e[s],(a=w3(o))in n?py.f(n,a,E3(0,i)):n[a]=i;return c.length=f,c},S1e=Re.TypeError,Lz=function(e,t){var r=e.exec;if(Tr(r)){var n=sr(r,e,t);return n!==null&&Xn(n),n}if(ka(e)==="RegExp")return sr(ih,e,t);throw S1e("RegExp#exec called on incompatible receiver")},lc=Oz.UNSUPPORTED_Y,A1e=Math.min,Mz=[].push,k1e=Qe(/./.exec),cc=Qe(Mz),ah=Qe("".slice);(function(e,t,r,n){var o=Aa(e),i=!ur(function(){var l={};return l[o]=function(){return 7},""[e](l)!=7}),a=i&&!ur(function(){var l=!1,c=/a/;return(c={}).constructor={},c.constructor[h1e]=function(){return c},c.flags="",c[o]=/./[o],c.exec=function(){return l=!0,null},c[o](""),!l});if(!i||!a||r){var u=Qe(/./[o]),s=(function(l,c,f){var p;return p="abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?function(d,v){var m,g,y=ui(ic(this)),h=v===void 0?4294967295:v>>>0;if(h===0)return[];if(d===void 0)return[y];if(!ai(m=d)||!((g=m[g1e])!==void 0?g:ka(m)=="RegExp"))return sr(c,y,d,h);for(var b,w,x,A=[],S=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(d.sticky?"y":""),B=0,P=new RegExp(d.source,S+"g");(b=sr(ih,P,y))&&!((w=P.lastIndex)>B&&(cc(A,ah(y,B,b.index)),b.length>1&&b.index<y.length&&p1e(Mz,A,Iz(b,1)),x=b[0].length,B=w,A.length>=h));)P.lastIndex===b.index&&P.lastIndex++;return B===y.length?!x&&k1e(P,"")||cc(A,""):cc(A,ah(y,B)),A.length>h?Iz(A,0,h):A}:"0".split(void 0,0).length?function(d,v){return d===void 0&&v===0?[]:sr(c,this,d,v)}:c,[function(d,v){var m=ic(this),g=d==null?void 0:KM(d,l);return g?sr(g,d,m,v):sr(p,ui(m),d,v)},function(d,v){var m=Xn(this),g=ui(d),y=f(p,m,g,v,p!==c);if(y.done)return y.value;var h=(function(C,z){var k,I=Xn(C).constructor;return I===void 0||(k=Xn(I)[m1e])==null?z:(function(Y){if(fz(Y))return Y;throw v1e(WM(Y)+" is not a constructor")})(k)})(m,RegExp),b=m.unicode,w=(m.ignoreCase?"i":"")+(m.multiline?"m":"")+(m.unicode?"u":"")+(lc?"g":"y"),x=new h(lc?"^(?:"+m.source+")":m,w),A=v===void 0?4294967295:v>>>0;if(A===0)return[];if(g.length===0)return Lz(x,g)===null?[g]:[];for(var S=0,B=0,P=[];B<g.length;){x.lastIndex=lc?0:B;var H,U=Lz(x,lc?ah(g,B):g);if(U===null||(H=A1e(uz(x.lastIndex+(lc?B:0)),g.length))===S)B=C1e(g,B,b);else{if(cc(P,ah(g,S,B)),P.length===A)return P;for(var W=1;W<=U.length-1;W++)if(cc(P,U[W]),P.length===A)return P;B=S=H}}return cc(P,ah(g,S)),P}]})(o,""[e],function(l,c,f,p,d){var v=Qe(l),m=c.exec;return m===ih||m===G3.exec?i&&!d?{done:!0,value:u(c,f,p)}:{done:!0,value:v(f,c,p)}:{done:!1}});rh(String.prototype,e,s[0]),rh(G3,o,s[1])}n&&ac(G3[o],"sham",!0)})("split",0,!!ur(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),lc),my({global:!0},{globalThis:Re}),hn&&(T.fn.attr=hn);var O1e=rz.PROPER,K3=RegExp.prototype,zz=K3.toString,B1e=Qe(kz),F1e=ur(function(){return zz.call({source:"a",flags:"b"})!="/a/b"}),_1e=O1e&&zz.name!="toString";(F1e||_1e)&&rh(RegExp.prototype,"toString",function(){var e=Xn(this),t=ui(e.source),r=e.flags;return"/"+t+"/"+ui(r===void 0&&qM(K3,e)&&!("flags"in K3)?B1e(e):r)},{unsafe:!0});var T1e=(function(){function e(){this.title=ie("highLightModule.selectLang"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M64 64v896h896V64H64z m487.6 698.8c0 87.2-51.2 127-125.8 127-67.4 0-106.4-34.8-126.4-77l68.6-41.4c13.2 23.4 25.2 43.2 54.2 43.2 27.6 0 45.2-10.8 45.2-53V475.4h84.2v287.4z m199.2 127c-78.2 0-128.8-37.2-153.4-86l68.6-39.6c18 29.4 41.6 51.2 83 51.2 34.8 0 57.2-17.4 57.2-41.6 0-28.8-22.8-39-61.4-56l-21-9c-60.8-25.8-101-58.4-101-127 0-63.2 48.2-111.2 123.2-111.2 53.6 0 92 18.6 119.6 67.4L800 580c-14.4-25.8-30-36-54.2-36-24.6 0-40.2 15.6-40.2 36 0 25.2 15.6 35.4 51.8 51.2l21 9c71.6 30.6 111.8 62 111.8 132.4 0 75.6-59.6 117.2-139.4 117.2z"></path></svg>',this.tag="select",this.width=95,this.selectPanelWidth=115}return e.prototype.getOptions=function(t){var r=[],n=t.getMenuConfig("codeSelectLang").codeLangs,o=n===void 0?[]:n;r.push({text:"plain text",value:""}),o.forEach(function(a){var u=a.text,s=a.value;r.push({text:u,value:s})});var i=this.getValue(t);return r.forEach(function(a){a.value===i?a.selected=!0:delete a.selected}),r},e.prototype.isActive=function(t){return!1},e.prototype.getValue=function(t){var r=this.getSelectCodeElem(t);if(r==null||!ge.isElement(r))return"";var n=r.language.toString(),o=t.getMenuConfig("codeSelectLang").codeLangs;return(o===void 0?[]:o).some(function(i){return i.value===n})?n:""},e.prototype.isDisabled=function(t){return t.selection==null||!this.getSelectCodeElem(t)},e.prototype.exec=function(t,r){if(this.getSelectCodeElem(t)!=null){var n={language:r.toString()};V.setNodes(t,n,{match:function(o){return _.checkNodeType(o,"code")}})}},e.prototype.getSelectCodeElem=function(t){var r=_.getSelectedNodeByType(t,"code");if(r==null)return null;var n=_.getParentNode(t,r);return ge.isElement(n)?n.type!=="pre"?null:r:null},e})(),P1e={renderStyle:function(e,t){var r=e,n=t,o="";return Jye.forEach(function(i){r[i]&&(o=i)}),o&&(function(i,a){i.data==null&&(i.data={});var u=i.data;u.props==null&&(u.props={}),Object.assign(u.props,{className:a})})(n,o="token "+o),n},parseStyleHtml:function(e,t,r){var n=T(e);if(!ge.isElement(t)||_.getNodeType(t)!=="code")return t;var o=t,i=n.attr("class")||"";return i.indexOf("language-")===0?o.language=i.split("-")[1]||"":o.language=i.toLowerCase(),o},menus:[{key:"codeSelectLang",factory:function(){return new T1e},config:{codeLangs:[{text:"CSS",value:"css"},{text:"HTML",value:"html"},{text:"XML",value:"xml"},{text:"Javascript",value:"javascript"},{text:"Typescript",value:"typescript"},{text:"JSX",value:"jsx"},{text:"Go",value:"go"},{text:"PHP",value:"php"},{text:"C",value:"c"},{text:"Python",value:"python"},{text:"Java",value:"java"},{text:"C++",value:"cpp"},{text:"C#",value:"csharp"},{text:"Visual Basic",value:"visual-basic"},{text:"SQL",value:"sql"},{text:"Ruby",value:"ruby"},{text:"Swift",value:"swift"},{text:"Bash",value:"bash"},{text:"Lua",value:"lua"},{text:"Groovy",value:"groovy"},{text:"Markdown",value:"markdown"}]}}],elemsToHtml:[{type:"code",elemToHtml:function(e,t){var r=e.language,n=r===void 0?"":r;return"<code "+(n?'class="language-'+n+'"':"")+">"+t+"</code>"}}]},j1e=/"/g,N1e=Qe("".replace);my({target:"String",proto:!0,forced:ur(function(){var e="".anchor('"');return e!==e.toLowerCase()||e.split('"').length>3})},{anchor:function(e){return t=e,r=ui(ic(this)),n="<a",(n+=' name="'+N1e(ui(t),j1e,"&quot;")+'"')+">"+r+"</a>";var t,r,n}});var Vz=function(e){var t,r,n,o=(function(y,h){var b=typeof Symbol=="function"&&y[Symbol.iterator];if(!b)return y;var w,x,A=b.call(y),S=[];try{for(;(h===void 0||h-- >0)&&!(w=A.next()).done;)S.push(w.value)}catch(B){x={error:B}}finally{try{w&&!w.done&&(b=A.return)&&b.call(A)}finally{if(x)throw x.error}}return S})(e,2),i=o[0],a=o[1],u=[],s=(function(y){if(!le.isText(y))return null;var h=_.getParentNode(null,y);if(h&&_.getNodeType(h)==="code"){var b=_.getParentNode(null,h);if(b&&_.getNodeType(b)==="pre")return h}return null})(i);if(s==null)return u;var l=s.language,c=l===void 0?"":l;if(!c)return u;var f=(function(y,h){if(!h)return[];var b=Sz.languages[h];return b?Sz.tokenize(y.text,b):[]})(i,c),p=0;try{for(var d=(function(y){var h=typeof Symbol=="function"&&Symbol.iterator,b=h&&y[h],w=0;if(b)return b.call(y);if(y&&typeof y.length=="number")return{next:function(){return y&&w>=y.length&&(y=void 0),{value:y&&y[w++],done:!y}}};throw new TypeError(h?"Object is not iterable.":"Symbol.iterator is not defined.")})(f),v=d.next();!v.done;v=d.next()){var m=v.value,g=p+Az(m);typeof m!="string"&&u.push(((n={})[m.type]=!0,n.anchor={path:a,offset:p},n.focus={path:a,offset:g},n)),p=g}}catch(y){t={error:y}}finally{try{v&&!v.done&&(r=d.return)&&r.call(d)}finally{if(t)throw t.error}}return u},kt=function(){return kt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},kt.apply(this,arguments)},lr=(function(){function e(){throw new Error(`不能实例化
80
+ Can not construct a instance`)}return e.setEditorConfig=function(t){t===void 0&&(t={}),this.editorConfig=kt(kt({},this.editorConfig),t)},e.setSimpleEditorConfig=function(t){t===void 0&&(t={}),this.simpleEditorConfig=kt(kt({},this.simpleEditorConfig),t)},e.setToolbarConfig=function(t){t===void 0&&(t={}),this.toolbarConfig=kt(kt({},this.toolbarConfig),t)},e.setSimpleToolbarConfig=function(t){t===void 0&&(t={}),this.simpleToolbarConfig=kt(kt({},this.simpleToolbarConfig),t)},e.registerPlugin=function(t){this.plugins.push(t)},e.registerMenu=function(t,r){(function(n,o){var i=n.key,a=n.factory,u=n.config,s=bn(bn({},u),o||{});if(Lf[i]!=null)throw new Error("Duplicated key '"+i+"' in menu items");Lf[i]=a,(function(l,c){c!=null&&(dO[l]=c)})(i,s)})(t,r)},e.registerRenderElem=function(t){(function(r){var n=r.type,o=r.renderElem;yB[n||""]=o})(t)},e.registerRenderStyle=function(t){(function(r){CE.push(r)})(t)},e.registerElemToHtml=function(t){(function(r){var n=r.type,o=r.elemToHtml;hO[n||""]=o})(t)},e.registerStyleToHtml=function(t){(function(r){Uw.push(r)})(t)},e.registerPreParseHtml=function(t){(function(r){XO.push(r)})(t)},e.registerParseElemHtml=function(t){(function(r){var n=r.selector,o=r.parseElemHtml;y0[n]=o})(t)},e.registerParseStyleHtml=function(t){(function(r){sE.push(r)})(t)},e.registerModule=function(t){ss(t)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e})();function ss(e){var t=e.menus,r=e.renderElems,n=e.renderStyle,o=e.elemsToHtml,i=e.styleToHtml,a=e.preParseHtml,u=e.parseElemsHtml,s=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach(function(c){return lr.registerMenu(c)}),r&&r.forEach(function(c){return lr.registerRenderElem(c)}),n&&lr.registerRenderStyle(n),o&&o.forEach(function(c){return lr.registerElemToHtml(c)}),i&&lr.registerStyleToHtml(i),a&&a.forEach(function(c){return lr.registerPreParseHtml(c)}),u&&u.forEach(function(c){return lr.registerParseElemHtml(c)}),s&&lr.registerParseStyleHtml(s),l&&lr.registerPlugin(l)}Vue.forEach(function(e){return ss(e)}),ss(yce),ss(qde),ss(e0e),ss(Wme),ss(P1e);var Hz='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>',Uz={link:{menuKeys:["editLink","unLink","viewLink"]},image:{menuKeys:["imageWidth30","imageWidth50","imageWidth100","editImage","viewImageLink","deleteImage"]},pre:{menuKeys:["enter","codeBlock","codeSelectLang"]},table:{menuKeys:["enter","tableHeader","tableFullWidth","insertTableRow","deleteTableRow","insertTableCol","deleteTableCol","deleteTable"]},divider:{menuKeys:["enter"]},video:{menuKeys:["enter","editVideoSize"]}},R1e={hoverbarKeys:kt(kt({},Uz),{text:{menuKeys:["headerSelect","insertLink","bulletedList","|","bold","through","color","bgColor","clearStyle"]}})};lr.setEditorConfig(kt(kt({},R1e),{decorate:Vz}));var I1e={hoverbarKeys:Uz};lr.setSimpleEditorConfig(kt(kt({},I1e),{decorate:Vz}));var L1e={toolbarKeys:["headerSelect","blockquote","|","bold","underline","italic",{key:"group-more-style",title:ie("editor.more"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M204.8 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M505.6 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path><path d="M806.4 505.6m-76.8 0a76.8 76.8 0 1 0 153.6 0 76.8 76.8 0 1 0-153.6 0Z"></path></svg>',menuKeys:["through","code","sup","sub","clearStyle"]},"color","bgColor","|","fontSize","fontFamily","lineHeight","|","bulletedList","numberedList","todo",{key:"group-justify",title:ie("editor.justify"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M768 793.6v102.4H51.2v-102.4h716.8z m204.8-230.4v102.4H51.2v-102.4h921.6z m-204.8-230.4v102.4H51.2v-102.4h716.8zM972.8 102.4v102.4H51.2V102.4h921.6z"></path></svg>',menuKeys:["justifyLeft","justifyRight","justifyCenter","justifyJustify"]},{key:"group-indent",title:ie("editor.indent"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>',menuKeys:["indent","delIndent"]},"|","emotion","insertLink",{key:"group-image",title:ie("editor.image"),iconSvg:Hz,menuKeys:["insertImage","uploadImage"]},{key:"group-video",title:ie("editor.video"),iconSvg:'<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>',menuKeys:["insertVideo","uploadVideo"]},"insertTable","codeBlock","divider","|","undo","redo","|","fullScreen"]};lr.setToolbarConfig(L1e);var M1e={toolbarKeys:["blockquote","header1","header2","header3","|","bold","underline","italic","through","color","bgColor","clearStyle","|","bulletedList","numberedList","todo","justifyLeft","justifyRight","justifyCenter","|","insertLink",{key:"group-image",title:ie("editor.image"),iconSvg:Hz,menuKeys:["insertImage","uploadImage"]},"insertVideo","insertTable","codeBlock","|","undo","redo","|","fullScreen"]};function z1e(e){e===void 0&&(e={});var t=e.selector,r=t===void 0?"":t,n=e.content,o=n===void 0?[]:n,i=e.html,a=e.config,u=a===void 0?{}:a,s=e.mode,l=(s===void 0?"default":s)==="simple"?lr.simpleEditorConfig:lr.editorConfig,c=kt(kt({},l.hoverbarKeys||{}),u.hoverbarKeys||{});return qee({selector:r,config:kt(kt(kt({},l),u),{hoverbarKeys:c}),content:o,html:i,plugins:lr.plugins})}function V1e(e){var t=e.selector,r=e.editor,n=e.config,o=n===void 0?{}:n,i=e.mode,a=i===void 0?"default":i;if(!t)throw new Error("Cannot find 'selector' when create toolbar");var u=a==="simple"?lr.simpleToolbarConfig:lr.toolbarConfig,s=(function(l,c){if(l==null)throw new Error("Cannot create toolbar, because editor is null");var f=c.selector,p=c.config,d=p===void 0?{}:p;if((function(g,y){return nB(g,"data-w-e-toolbar",y)})(l,f))throw new Error("Repeated create toolbar by selector '"+f+"'");var v=bn({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},d||{}),m=new Xee(f,v);return Fw.set(m,l),l0.set(l,m),m})(r,{selector:t,config:kt(kt({},u),o)});return s}lr.setSimpleToolbarConfig(M1e);var H1e=Object.defineProperty,U1e=Object.defineProperties,q1e=Object.getOwnPropertyDescriptors,qz=Object.getOwnPropertySymbols,W1e=Object.prototype.hasOwnProperty,G1e=Object.prototype.propertyIsEnumerable,Wz=(e,t,r)=>t in e?H1e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,K1e=(e,t)=>{for(var r in t||(t={}))W1e.call(t,r)&&Wz(e,r,t[r]);if(qz)for(var r of qz(t))G1e.call(t,r)&&Wz(e,r,t[r]);return e},Y1e=(e,t)=>U1e(e,q1e(t));function Ba(e){let t=`请使用 '@${e}' 事件,不要放在 props 中`;return t+=`
81
+ Please use '@${e}' event instead of props`,t}var Gz=(e,t)=>{for(const[r,n]of t)e[r]=n;return e};const X1e=E.defineComponent({props:{mode:{type:String,default:"default"},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:""},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:""}},setup(e,t){const r=E.ref(null),n=E.shallowRef(null),o=E.ref(""),i=()=>{if(!r.value)return;const u=E.toRaw(e.defaultContent);z1e({selector:r.value,mode:e.mode,content:u||[],html:e.defaultHtml||e.modelValue||"",config:Y1e(K1e({},e.defaultConfig),{onCreated(s){if(n.value=s,t.emit("onCreated",s),e.defaultConfig.onCreated){const l=Ba("onCreated");throw new Error(l)}},onChange(s){const l=s.getHtml();if(o.value=l,t.emit("update:modelValue",l),t.emit("onChange",s),e.defaultConfig.onChange){const c=Ba("onChange");throw new Error(c)}},onDestroyed(s){if(t.emit("onDestroyed",s),e.defaultConfig.onDestroyed){const l=Ba("onDestroyed");throw new Error(l)}},onMaxLength(s){if(t.emit("onMaxLength",s),e.defaultConfig.onMaxLength){const l=Ba("onMaxLength");throw new Error(l)}},onFocus(s){if(t.emit("onFocus",s),e.defaultConfig.onFocus){const l=Ba("onFocus");throw new Error(l)}},onBlur(s){if(t.emit("onBlur",s),e.defaultConfig.onBlur){const l=Ba("onBlur");throw new Error(l)}},customAlert(s,l){if(t.emit("customAlert",s,l),e.defaultConfig.customAlert){const c=Ba("customAlert");throw new Error(c)}},customPaste:(s,l)=>{if(e.defaultConfig.customPaste){const f=Ba("customPaste");throw new Error(f)}let c;return t.emit("customPaste",s,l,f=>{c=f}),c}})})};function a(u){const s=n.value;s?.setHtml(u)}return E.onMounted(()=>{i()}),E.watch(()=>e.modelValue,u=>{u!==o.value&&a(u)}),{box:r}}}),$1e={ref:"box",style:{height:"100%"}};function Z1e(e,t,r,n,o,i){return E.openBlock(),E.createElementBlock("div",$1e,null,512)}var J1e=Gz(X1e,[["render",Z1e]]);const Q1e=E.defineComponent({props:{editor:{type:Object},mode:{type:String,default:"default"},defaultConfig:{type:Object,default:{}}},setup(e){const t=E.ref(null),r=n=>{if(t.value){if(n==null)throw new Error("Not found instance of Editor when create <Toolbar/> component");_.getToolbar(n)||V1e({editor:n,selector:t.value||"<div></div>",mode:e.mode,config:e.defaultConfig})}};return E.watchEffect(()=>{const{editor:n}=e;n!=null&&r(n)}),{selector:t}}}),ebe={ref:"selector"};function tbe(e,t,r,n,o,i){return E.openBlock(),E.createElementBlock("div",ebe,null,512)}var rbe=Gz(Q1e,[["render",tbe]]);const Kz=Object.freeze(Object.defineProperty({__proto__:null,Editor:J1e,Toolbar:rbe},Symbol.toStringTag,{value:"Module"}));return GV}));